Quellcode durchsuchen

Add GetTransport to client.

Mariano Cano vor 7 Jahren
Ursprung
Commit
ab126d6405
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5 0
      ca/client.go

+ 5 - 0
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.
 // SetTransport updates the transport of the internal HTTP client.
 func (c *Client) SetTransport(tr http.RoundTripper) {
 func (c *Client) SetTransport(tr http.RoundTripper) {
 	c.client.SetTransport(tr)
 	c.client.SetTransport(tr)