Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransportWithFallbackHeaders ¶
func NewTransportWithFallbackHeaders(t http.RoundTripper, headers http.Header) http.RoundTripper
NewTransportWithFallbackHeaders creates a new http.RoundTripper that wraps the given http.RoundTripper and adds the given headers to the request if they are not already set.
This is useful if you want to ensure a signed header like `Content-Type` is set on all requests, including GETs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.