func HTTPWrappersForConfig(config *Config, rt http.RoundTripper) (http.RoundTripper, error) { … }
func DebugWrappers(rt http.RoundTripper) http.RoundTripper { … }
type authProxyRoundTripper …
var _ …
func NewAuthProxyRoundTripper(username, uid string, groups []string, extra map[string][]string, rt http.RoundTripper) http.RoundTripper { … }
func (rt *authProxyRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { … }
func SetAuthProxyHeaders(req *http.Request, username, uid string, groups []string, extra map[string][]string) { … }
func (rt *authProxyRoundTripper) CancelRequest(req *http.Request) { … }
func (rt *authProxyRoundTripper) WrappedRoundTripper() http.RoundTripper { … }
type userAgentRoundTripper …
var _ …
func NewUserAgentRoundTripper(agent string, rt http.RoundTripper) http.RoundTripper { … }
func (rt *userAgentRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { … }
func (rt *userAgentRoundTripper) CancelRequest(req *http.Request) { … }
func (rt *userAgentRoundTripper) WrappedRoundTripper() http.RoundTripper { … }
type basicAuthRoundTripper …
var _ …
func NewBasicAuthRoundTripper(username, password string, rt http.RoundTripper) http.RoundTripper { … }
func (rt *basicAuthRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { … }
func (rt *basicAuthRoundTripper) CancelRequest(req *http.Request) { … }
func (rt *basicAuthRoundTripper) WrappedRoundTripper() http.RoundTripper { … }
const ImpersonateUserHeader …
const ImpersonateUIDHeader …
const ImpersonateGroupHeader …
const ImpersonateUserExtraHeaderPrefix …
type impersonatingRoundTripper …
var _ …
func NewImpersonatingRoundTripper(impersonate ImpersonationConfig, delegate http.RoundTripper) http.RoundTripper { … }
func (rt *impersonatingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { … }
func (rt *impersonatingRoundTripper) CancelRequest(req *http.Request) { … }
func (rt *impersonatingRoundTripper) WrappedRoundTripper() http.RoundTripper { … }
type bearerAuthRoundTripper …
var _ …
func NewBearerAuthRoundTripper(bearer string, rt http.RoundTripper) http.RoundTripper { … }
func NewBearerAuthWithRefreshRoundTripper(bearer string, tokenFile string, rt http.RoundTripper) (http.RoundTripper, error) { … }
func (rt *bearerAuthRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { … }
func (rt *bearerAuthRoundTripper) CancelRequest(req *http.Request) { … }
func (rt *bearerAuthRoundTripper) WrappedRoundTripper() http.RoundTripper { … }
type requestInfo …
func newRequestInfo(req *http.Request) *requestInfo { … }
func (r *requestInfo) complete(response *http.Response, err error) { … }
func (r *requestInfo) toCurl() string { … }
type debuggingRoundTripper …
var _ …
type DebugLevel …
const DebugJustURL …
const DebugURLTiming …
const DebugCurlCommand …
const DebugRequestHeaders …
const DebugResponseStatus …
const DebugResponseHeaders …
const DebugDetailedTiming …
func NewDebuggingRoundTripper(rt http.RoundTripper, levels ...DebugLevel) http.RoundTripper { … }
func (rt *debuggingRoundTripper) CancelRequest(req *http.Request) { … }
var knownAuthTypes …
func maskValue(key string, value string) string { … }
func (rt *debuggingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { … }
func (rt *debuggingRoundTripper) WrappedRoundTripper() http.RoundTripper { … }
func legalHeaderByte(b byte) bool { … }
func shouldEscape(b byte) bool { … }
func headerKeyEscape(key string) string { … }
var legalHeaderKeyBytes …