(req *http.Request)
| 15 | } |
| 16 | |
| 17 | func (r *recordingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { |
| 18 | r.authHeaders = append(r.authHeaders, req.Header.Get("Authorization")) |
| 19 | return &http.Response{StatusCode: http.StatusOK, Body: http.NoBody, Header: make(http.Header), Request: req}, nil |
| 20 | } |
| 21 | |
| 22 | // sequencedAuthConfig returns a different credential on each call and records the hostname it was asked about, so a |
| 23 | // test can prove the transport resolves a token per request rather than once at construction time. |
no test coverage detected