mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 18:18:30 +00:00
Add GetTransport to client.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user