MCPcopy Create free account
hub / github.com/chainreactors/spray / Do

Method Do

core/ihttp/client.go:114–124  ·  view source on GitHub ↗
(req *Request)

Source from the content-addressed store, hash-verified

112}
113
114func (c *Client) Do(req *Request) (*Response, error) {
115 if c.fastClient != nil {
116 resp, err := c.FastDo(req.FastRequest)
117 return &Response{FastResponse: resp, ClientType: FAST}, err
118 } else if c.standardClient != nil {
119 resp, err := c.StandardDo(req.StandardRequest)
120 return &Response{StandardResponse: resp, ClientType: STANDARD}, err
121 } else {
122 return nil, fmt.Errorf("not found client")
123 }
124}
125
126func customDialFunc(dialer proxyclient.Dial, timeout time.Duration) fasthttp.DialFunc {
127 if dialer == nil {

Callers 6

StandardDoMethod · 0.80
RunMethod · 0.80
invokeMethod · 0.80
invokeNoScopeMethod · 0.80
RunMethod · 0.80
InvokeMethod · 0.80

Calls 2

FastDoMethod · 0.95
StandardDoMethod · 0.95

Tested by

no test coverage detected