Documentation
¶
Overview ¶
package rt provides RoundTripper middleware for an *http.Client
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain []Tripper
Chain is a list of Trippers The chain is an effective no-op. Users must call the Wrap method on an *http.Client to utilize the Chain
type Tripper ¶
type Tripper func(http.RoundTripper) http.RoundTripper
Tripper wraps a RoundTripper and returns a new
func Authorization ¶
UserAgent returns a Tripper that sets the Authorization header of any outgoing request
Click to show internal directories.
Click to hide internal directories.