SetTimeout sets the timeout value for the client. This applies to all requests unless overridden at the request level.
(t time.Duration)
| 659 | |
| 660 | // SetTimeout sets the timeout value for the client. This applies to all requests unless overridden at the request level. |
| 661 | func (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. |
| 670 | func (c *Client) Debug() *Client { |