transport

package
v0.0.11-dev Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL