Documentation
¶
Index ¶
- func ApplyBundle(base http.RoundTripper, bundle *tlsconfig.Bundle) (http.RoundTripper, error)
- func ApplyClientCertificate(base http.RoundTripper, clientCertificate *tlsconfig.ClientCertificate) (http.RoundTripper, error)
- func ApplyProxy(base http.RoundTripper, proxyURL *url.URL) (http.RoundTripper, error)
- func ApplyUnixSocketPath(base http.RoundTripper, socketPath string) (http.RoundTripper, error)
- func CloneDefault() http.RoundTripper
- func CloneDefaultWithBundle(bundle *tlsconfig.Bundle) (http.RoundTripper, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyBundle ¶
func ApplyBundle(base http.RoundTripper, bundle *tlsconfig.Bundle) (http.RoundTripper, error)
ApplyBundle applies a custom CA bundle to the provided RoundTripper.
func ApplyClientCertificate ¶
func ApplyClientCertificate(base http.RoundTripper, clientCertificate *tlsconfig.ClientCertificate) (http.RoundTripper, error)
ApplyClientCertificate applies an mTLS client certificate to the provided RoundTripper when one is configured.
func ApplyProxy ¶
func ApplyProxy(base http.RoundTripper, proxyURL *url.URL) (http.RoundTripper, error)
ApplyProxy clones the provided RoundTripper with a fixed proxy when proxyURL is set. Explicit proxies bypass environment proxy variables and NO_PROXY.
func ApplyUnixSocketPath ¶
func ApplyUnixSocketPath(base http.RoundTripper, socketPath string) (http.RoundTripper, error)
ApplyUnixSocketPath makes HTTP requests dial the provided Unix-domain socket.
func CloneDefault ¶
func CloneDefault() http.RoundTripper
CloneDefault returns an isolated copy of the default HTTP transport so callers can customize behavior without mutating shared state.
func CloneDefaultWithBundle ¶
func CloneDefaultWithBundle(bundle *tlsconfig.Bundle) (http.RoundTripper, error)
CloneDefaultWithBundle returns a default HTTP transport with the custom CA bundle applied, when provided.
Types ¶
This section is empty.