From 7fe1eb8686a039b1af6b1e6a1de7f37d74c97953 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Tue, 10 Dec 2019 16:34:24 -0800 Subject: [PATCH] Add GetTransport to client. --- ca/client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ca/client.go b/ca/client.go index 0267dfa3..a5d88808 100644 --- a/ca/client.go +++ b/ca/client.go @@ -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)