Versions in this module Expand all Collapse all v0 v0.1.0 Apr 17, 2026 Changes in this version + var ErrAbsoluteURLRequired = errors.New("forward: absolute url required") + var ErrConnectNotSupported = errors.New("forward: CONNECT is not supported") + type ErrorWriter func(http.ResponseWriter, *http.Request, int, error) + type Handler struct + func New(opts Options) *Handler + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Options struct + ForwardedHeaders proxyhttp.ForwardedHeaderConfig + GenerateSessionID func() string + Hooks observe.Hooks + MutateRequest RequestMutator + MutateResponse ResponseMutator + ObserveRequest func(*http.Request) bool + RoundTripper http.RoundTripper + SampleRequestBodyBytes int + SampleResponseBodyBytes int + WriteError ErrorWriter + type RequestMutator func(context.Context, *http.Request) error + type ResponseMutator func(context.Context, *http.Request, *http.Response) error