We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06dc111 commit fb49ce3Copy full SHA for fb49ce3
1 file changed
client.go
@@ -1484,6 +1484,13 @@ func (c *Client) SetHTTP2WriteByteTimeout(timeout time.Duration) *Client {
1484
return c
1485
}
1486
1487
+// Do is compatible with http.Client.Do, which can make req integration easier
1488
+// in some scenarios.It should be noted that this will make some req features
1489
+// not work properly, such as automatic retry, client middleware, etc.
1490
+func (c *Client) Do(req *http.Request) (*http.Response, error) {
1491
+ return c.httpClient.Do(req)
1492
+}
1493
+
1494
// NewClient is the alias of C
1495
func NewClient() *Client {
1496
return C()
0 commit comments