package
1.11.9
Repository: https://github.com/xmidt-org/webpa-common.git
Documentation: pkg.go.dev

# Functions

MatchBody returns a request matcher that verifies each request has an exact body.
No description provided by the author
MatchHeader returns a request matcher that matches against a request header.
MatchMethod returns a request matcher that verifies each request has a specific method.
MatchURL returns a request matcher that verifies each request has an exact URL.
MatchURLString returns a request matcher that verifies the request's URL translates to the given string.
NewResponse provides a convenient way of synthesizing a client response, similar to httptest.NewRequest.

# Structs

ExpectedResponse is a tuple of the expected return values from transactor.Do.
MockBody is a stretchr mock for a Request or a Response body, which is really just an io.ReadCloser.
MockTransactor is a stretchr mock for the Do method of an HTTP client or round tripper.
TransactCall is a stretchr mock Call with some extra behavior to make mocking out HTTP client behavior easier.