# Functions
BasicAuthenticationMiddleware applies basic authentication to the HTTP header "Authorization" in the outgoing request.
ContextualMiddleware is a middleware that allows the outgoing request to be modified with contextual middlewares.
ContextualMiddlewareFromContext returns middlewares from context, if any.
CustomHeadersMiddleware applies custom HTTP headers to the outgoing request.
DefaultMiddlewares is the default middleware applied when creating new HTTP clients and no middleware is provided.
GetTLSConfig creates a new tls.Config given provided options.
GetTransport creates a new http.RoundTripper given provided options.
NamedMiddlewareFunc type is an adapter to allow the use of ordinary functions as Middleware.
New creates a new http.Client.
NewProvider creates a new HTTP client provider.
WithContextualMiddleware returns a copy of parent in which the provided middlewares is associated.
# Constants
BasicAuthenticationMiddlewareName is the middleware name used by BasicAuthenticationMiddleware.
ContextualMiddlewareName is the middleware name used by ContextualMiddleware.
CustomHeadersMiddlewareName is the middleware name used by CustomHeadersMiddleware.
# Variables
DefaultTimeoutOptions default timeout/connection options.
# Structs
BasicAuthOptions basic authentication options.
Options defines options for creating HTTP clients.
Provider is the default HTTP client provider implementation.
ProviderOptions are the options that will be used as default if not specified in Options provided to Provider.New, Provider.GetTransport and Provider.GetTLSConfig.
SigV4Config AWS SigV4 options.
TimeoutOptions timeout/connection options.
TLSOptions TLS options.
# Interfaces
Middleware is an interface representing the ability to create a middleware that implements the http.RoundTripper interface.
MiddlewareName is an interface representing the ability for a middleware to have a name.
# Type aliases
ConfigureClientFunc function signature for configuring http.Client.
ConfigureMiddlewareFunc function signature for configuring middleware chain.
ConfigureTLSConfigFunc function signature for configuring tls.Config.
ConfigureTransportFunc function signature for configuring http.Transport.
The MiddlewareFunc type is an adapter to allow the use of ordinary functions as Middlewares.
The RoundTripperFunc type is an adapter to allow the use of ordinary functions as RoundTrippers.