Versions in this module Expand all Collapse all v1 v1.0.1 Jan 3, 2023 Changes in this version + var MethodOverrideParam = "method" + var TokenCookieName = "token" + func WebsocketProxy(h http.Handler, opts ...Option) http.Handler + type Logger interface + Debugln func(...interface{}) + Warnln func(...interface{}) + type Option func(*Proxy) + func WithForwardedHeaders(fn func(header string) bool) Option + func WithLogger(logger Logger) Option + func WithMaxRespBodyBufferSize(nBytes int) Option + func WithMethodParamOverride(param string) Option + func WithRequestMutator(fn RequestMutatorFunc) Option + func WithTokenCookieName(param string) Option + type Proxy struct + func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) + type RequestMutatorFunc func(incoming *http.Request, outgoing *http.Request) *http.Request