Do triggers an HTTP request and returns an HTTP response, handling any context cancellations or timeouts.
(req *http.Request)
| 15 | // Do triggers an HTTP request and returns an HTTP response, |
| 16 | // handling any context cancellations or timeouts. |
| 17 | Do(req *http.Request) (*http.Response, error) |
| 18 | |
| 19 | // Request combines NewRequest and Do, encoding the payload as JSON and |
| 20 | // returning an error for any non-2xx response. |
no outgoing calls