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

Method SetTimeout

client.go:588–591  ·  view source on GitHub ↗

SetTimeout set timeout for requests fired from the client.

(d time.Duration)

Source from the content-addressed store, hash-verified

586
587// SetTimeout set timeout for requests fired from the client.
588func (c *Client) SetTimeout(d time.Duration) *Client {
589 c.httpClient.Timeout = d
590 return c
591}
592
593func (c *Client) getDumpOptions() *DumpOptions {
594 if c.dumpOptions == nil {

Callers 6

TestRetryFalseFunction · 0.80
TestSetTimeoutFunction · 0.80
TestSetBaseURLFunction · 0.80
TestTraceOnTimeoutFunction · 0.80
SetTimeoutFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestRetryFalseFunction · 0.64
TestSetTimeoutFunction · 0.64
TestSetBaseURLFunction · 0.64
TestTraceOnTimeoutFunction · 0.64