MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / SetTimeout

Method SetTimeout

pkg/httpcli/httpcli.go:103–106  ·  view source on GitHub ↗

SetTimeout set timeout

(t time.Duration)

Source from the content-addressed store, hash-verified

101
102// SetTimeout set timeout
103func (req *Request) SetTimeout(t time.Duration) *Request {
104 req.timeout = t
105 return req
106}
107
108// SetContentType set ContentType
109func (req *Request) SetContentType(a string) *Request {

Callers 3

doFunction · 0.95
gDoFunction · 0.95
TestErrorFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestErrorFunction · 0.64