add SetTimeout
This commit is contained in:
parent
f60c73fbb4
commit
a3c4dbab4a
@ -37,6 +37,10 @@ func (c *Client) SetHeader(key, value string) {
|
|||||||
c.headers.Add(key, value)
|
c.headers.Add(key, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Client) SetTimeout(timeout time.Duration) {
|
||||||
|
c.c.Timeout = timeout
|
||||||
|
}
|
||||||
|
|
||||||
func (c *Client) SetTransport(transport http.RoundTripper) {
|
func (c *Client) SetTransport(transport http.RoundTripper) {
|
||||||
c.c.Transport = transport
|
c.c.Transport = transport
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user