do performs an *http.Request respecting redirects, and handles the response as defined in c.handleResponse. Notably, it does not alter the headers for the request argument in any way.
(req *http.Request, remote string, via []*http.Request)
| 23 | // as defined in c.handleResponse. Notably, it does not alter the headers for |
| 24 | // the request argument in any way. |
| 25 | func (c *Client) do(req *http.Request, remote string, via []*http.Request) (*http.Response, error) { |
| 26 | return c.client.Do(req) |
| 27 | } |
| 28 | |
| 29 | func (c *Client) doWithAccess(req *http.Request, remote string, via []*http.Request, mode creds.AccessMode) (*http.Response, error) { |
| 30 | return c.client.DoWithAccess(req, mode) |