Add SetTransport method

This commit is contained in:
Alejandro Alvarez Ayllon 2017-08-07 12:13:13 +02:00
parent a03a0a3645
commit 79a29f3ad5

View File

@ -37,6 +37,10 @@ func (c *Client) SetHeader(key, value string) {
c.headers.Add(key, value)
}
func (c *Client) SetTransport(transport http.RoundTripper) {
c.c.Transport = transport
}
func (c *Client) Connect() error {
rs, err := c.options("/")
if err == nil {