Do is compatible with http.Client.Do, which can make req integration easier in some scenarios. It should be noted that this will make some req features not work properly, such as automatic retry, client middleware, etc.
(req *http.Request)
| 1536 | // in some scenarios. It should be noted that this will make some req features |
| 1537 | // not work properly, such as automatic retry, client middleware, etc. |
| 1538 | func (c *Client) Do(req *http.Request) (*http.Response, error) { |
| 1539 | return c.httpClient.Do(req) |
| 1540 | } |
| 1541 | |
| 1542 | // NewClient is the alias of C |
| 1543 | func NewClient() *Client { |
no outgoing calls