Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRoundTripper http.RoundTripper = &http.Transport{ Proxy: http.ProxyFromEnvironment, DialContext: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, }).DialContext, TLSHandshakeTimeout: 10 * time.Second, }
DefaultRoundTripper is our default RoundTripper.
Functions ¶
This section is empty.
Types ¶
type BasicAuthTransport ¶
type BasicAuthTransport struct {
Transport http.RoundTripper
Username string
Password string
}
BasicAuthTransport is the struct to add basic auth to a RoundTripper.
type TokenAuthTransporter ¶
type TokenAuthTransporter struct {
Transport http.RoundTripper
Token string
}
TokenAuthTransporter is the struct to add token auth to a RoundTripper.
Click to show internal directories.
Click to hide internal directories.