Versions in this module Expand all Collapse all v0 v0.2.0 Jul 13, 2026 Changes in this version + func DefaultRetryIf(req *http.Request, resp *http.Response, err error) bool + func New(opts ...Option) *http.Client + func NewLoggingTransport(base http.RoundTripper, logger *slog.Logger) http.RoundTripper + func NewRetryTransport(base http.RoundTripper, cfg ...RetryConfig) http.RoundTripper + func NewTraceTransport(base http.RoundTripper) http.RoundTripper + func SetTraceContext(ctx context.Context, tc TraceContext) context.Context + type Option func(*options) + func WithBaseTransport(rt http.RoundTripper) Option + func WithLogging(logger *slog.Logger) Option + func WithRetry(cfg ...RetryConfig) Option + func WithTimeout(d time.Duration) Option + func WithTracePropagation() Option + type RetryConfig struct + MaxAttempts int + MaxDelay time.Duration + MinDelay time.Duration + RetryIf func(req *http.Request, resp *http.Response, err error) bool + func DefaultRetryConfig() RetryConfig + type TraceContext struct + TraceParent string + TraceState string + func GetTraceContext(ctx context.Context) (TraceContext, bool) + func TraceContextFromRequest(r *http.Request) (TraceContext, bool)