MCPcopy Create free account
hub / github.com/imroc/req / Do

Method Do

client.go:1538–1540  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
1538func (c *Client) Do(req *http.Request) (*http.Response, error) {
1539 return c.httpClient.Do(req)
1540}
1541
1542// NewClient is the alias of C
1543func NewClient() *Client {

Callers 14

handleDigestAuthFuncFunction · 0.45
TestDoAPIStyleFunction · 0.45
newTextprotoReaderFunction · 0.45
canonicalMIMEHeaderKeyFunction · 0.45
roundTripMethod · 0.45
connPoolMethod · 0.45
abortStreamLockedMethod · 0.45
roundTripOptMethod · 0.45
requestDoneMethod · 0.45
IncNonDefaultMethod · 0.45
ValueMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestDoAPIStyleFunction · 0.36