Documentation
¶
Overview ¶
Package httpclient provides authentication-aware HTTP transports for upstream requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccessLogTransport ¶ added in v0.8.0
func NewAccessLogTransport(base http.RoundTripper, log *accesslog.Logger, logger *slog.Logger) http.RoundTripper
NewAccessLogTransport records each upstream HTTP exchange around base.
Types ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport adds configured authentication and follows OCI Bearer challenges.
func NewTransport ¶
func NewTransport(base http.RoundTripper, authForURL AuthFunc) *Transport
NewTransport creates an authentication-aware transport around base.
Click to show internal directories.
Click to hide internal directories.