MCPcopy
hub / github.com/kubernetes/client-go / RoundTrip

Method RoundTrip

transport/round_trippers.go:114–119  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

112}
113
114func (rt *authProxyRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
115 req = utilnet.CloneRequest(req)
116 SetAuthProxyHeaders(req, rt.username, rt.groups, rt.extra)
117
118 return rt.rt.RoundTrip(req)
119}
120
121// SetAuthProxyHeaders stomps the auth proxy header fields. It mutates its argument.
122func SetAuthProxyHeaders(req *http.Request, username string, groups []string, extra map[string][]string) {

Callers 5

RoundTripMethod · 0.45
RoundTripMethod · 0.45
RoundTripMethod · 0.45
RoundTripMethod · 0.45
RoundTripMethod · 0.45

Calls 1

SetAuthProxyHeadersFunction · 0.85

Tested by

no test coverage detected