Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeJSONBody ¶
DecodeJSONBody implements a testing util to let you easily decode request bodies in test middleware
func DecodeRawBody ¶
DecodeJSONBody implements a testing util to let you easily decode raw request bodies in test middleware
func Middleware ¶
func Middleware(it RoundTripInterceptor) http.RoundTripper
Middleware creates a new interceptor middleware for a http transport
func WithoutQuery ¶
WithoutQuery returns the URL without a query string appended to it
Types ¶
type Response ¶
Response wraps the roundtripper responses
func EmptyResponse ¶
EmptyResponse creates a new empty response
func ErrorResponse ¶
ErrorResponse returns a new error response
func JSONResponse ¶
JSONResponse creates a new JSON response
type RoundTripInterceptor ¶
RoundTripInterceptor will intercept the HTTP client call and let you send your own response
Click to show internal directories.
Click to hide internal directories.