Do sends an HTTP request to get an HTTP response. It wraps net/http, adding extra headers, redirection handling, and error reporting.
(req *http.Request)
| 16 | // Do sends an HTTP request to get an HTTP response. It wraps net/http, adding |
| 17 | // extra headers, redirection handling, and error reporting. |
| 18 | func (c *Client) Do(req *http.Request) (*http.Response, error) { |
| 19 | return c.client.Do(req) |
| 20 | } |
| 21 | |
| 22 | // do performs an *http.Request respecting redirects, and handles the response |
| 23 | // as defined in c.handleResponse. Notably, it does not alter the headers for |
no outgoing calls