(req *http.Request)
| 112 | } |
| 113 | |
| 114 | func (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. |
| 122 | func SetAuthProxyHeaders(req *http.Request, username string, groups []string, extra map[string][]string) { |