add SetTimeout

This commit is contained in:
Christoph Polcin 2018-05-15 11:51:53 +02:00
parent f60c73fbb4
commit a3c4dbab4a

View File

@ -37,6 +37,10 @@ func (c *Client) SetHeader(key, value string) {
c.headers.Add(key, value)
}
func (c *Client) SetTimeout(timeout time.Duration) {
c.c.Timeout = timeout
}
func (c *Client) SetTransport(transport http.RoundTripper) {
c.c.Transport = transport
}