Merge pull request #4 from ayllon/master

Add SetTransport method
This commit is contained in:
Christoph Polcin
2017-09-19 07:19:23 +02:00
committed by GitHub

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 {