From 79a29f3ad51eb887e668f9db8fdaaf5f391252c8 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Ayllon Date: Mon, 7 Aug 2017 12:13:13 +0200 Subject: [PATCH] Add SetTransport method --- client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.go b/client.go index 3c665c3..0ca0cc3 100644 --- a/client.go +++ b/client.go @@ -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 {