Versions in this module Expand all Collapse all v1 v1.4.0 Oct 17, 2016 Changes in this version + func DebugWrappers(rt http.RoundTripper) http.RoundTripper + func HTTPWrappersForConfig(config *Config, rt http.RoundTripper) (http.RoundTripper, error) + func New(config *Config) (http.RoundTripper, error) + func NewBasicAuthRoundTripper(username, password string, rt http.RoundTripper) http.RoundTripper + func NewBearerAuthRoundTripper(bearer string, rt http.RoundTripper) http.RoundTripper + func NewImpersonatingRoundTripper(impersonate string, delegate http.RoundTripper) http.RoundTripper + func NewUserAgentRoundTripper(agent string, rt http.RoundTripper) http.RoundTripper + func TLSConfigFor(c *Config) (*tls.Config, error) + type Config struct + BearerToken string + Impersonate string + Password string + TLS TLSConfig + Transport http.RoundTripper + UserAgent string + Username string + WrapTransport func(rt http.RoundTripper) http.RoundTripper + func (c *Config) HasBasicAuth() bool + func (c *Config) HasCA() bool + func (c *Config) HasCertAuth() bool + func (c *Config) HasTokenAuth() bool + type TLSConfig struct + CAData []byte + CAFile string + CertData []byte + CertFile string + Insecure bool + KeyData []byte + KeyFile string