forked from TrueCloudLab/certificates
Add GetTransport to client.
This commit is contained in:
parent
e841a86b48
commit
7fe1eb8686
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue