Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthorizedRoundTripper ¶
func NewAuthorizedRoundTripper(authorization string, roundTripper http.RoundTripper) http.RoundTripper
NewAuthorizedRoundTripper creates a new http.RoundTripper that will set the Authorization HTTP header with the value of [authorization]. The given [roundTripper] is the base http.RoundTripper. If it is nil, http.DefaultTransport is used.
Types ¶
type AuthorizedRoundTripper ¶
type AuthorizedRoundTripper struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.