Add GetTransport to client.

This commit is contained in:
Mariano Cano 2019-12-10 16:34:24 -08:00 committed by max furman
parent 08eac1b00d
commit ab126d6405

View file

@ -474,6 +474,11 @@ func (c *Client) GetRootCAs() *x509.CertPool {
}
}
// GetTransport returns the transport of the internal HTTP client.
func (c *Client) GetTransport() http.RoundTripper {
return c.client.GetTransport()
}
// SetTransport updates the transport of the internal HTTP client.
func (c *Client) SetTransport(tr http.RoundTripper) {
c.client.SetTransport(tr)