Add SetTransport method

This commit is contained in:
Alejandro Alvarez Ayllon committed 2017-08-07 12:13:13 +02:00
1 parent a03a0a3645
commit 79a29f3ad5
1 file changed
+4
+4
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 {