MCPcopy
hub / github.com/gofiber/fiber / SetTimeout

Method SetTimeout

client/client.go:661–667  ·  view source on GitHub ↗

SetTimeout sets the timeout value for the client. This applies to all requests unless overridden at the request level.

(t time.Duration)

Source from the content-addressed store, hash-verified

659
660// SetTimeout sets the timeout value for the client. This applies to all requests unless overridden at the request level.
661func (c *Client) SetTimeout(t time.Duration) *Client {
662 c.mu.Lock()
663 defer c.mu.Unlock()
664
665 c.timeout = t
666 return c
667}
668
669// Debug enables debug-level logging output.
670func (c *Client) Debug() *Client {

Callers 6

Test_Request_TimeoutFunction · 0.45
Test_ExecuteFunction · 0.45
setConfigToRequestFunction · 0.45

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 5

Test_Request_TimeoutFunction · 0.36
Test_ExecuteFunction · 0.36