Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiddlewareFunc ¶
type MiddlewareFunc func(parent http.RoundTripper) http.RoundTripper
func Compose ¶
func Compose(middlewareFuncs ...MiddlewareFunc) MiddlewareFunc
Compose returns a middlewareFunc that successively applies all the middlewareFuncs passed in the parameters Pay attention, Compose() applies the middleware right to left: order matters when appyling your middlewareFuncs
func NewPostResponseMiddleware ¶
func NewPostResponseMiddleware(postResponseFunc PostResponseFunc) MiddlewareFunc
func NewPreRequestMiddleware ¶
func NewPreRequestMiddleware(preRequestFunc PreRequestFunc) MiddlewareFunc
type PostResponseMiddleware ¶
type PostResponseMiddleware struct {
// contains filtered or unexported fields
}
type PreRequestMiddleware ¶
type PreRequestMiddleware struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.