Versions in this module Expand all Collapse all v0 v0.0.1 Jun 25, 2026 Changes in this version + func CORS(opts ...CORSOption) func(http.Handler) http.Handler + func CanonicalHost(domain string, code int) func(h http.Handler) http.Handler + func Compress(level int) func(h http.Handler) http.Handler + func DefaultCORS(opts ...CORSOption) func(http.Handler) http.Handler + func DefaultCompress() func(h http.Handler) http.Handler + func InjectContext(carriers ...contextx.Carrier) httpx.Middleware + func LogHandler() func(http.Handler) http.Handler + func MetricHandler(gatherer prometheus.Gatherer) func(http.Handler) http.Handler + func PProfHandler(enabled bool) func(handler http.Handler) http.Handler + type CORSOption func(*corshandler.Cors) error + func AllowCredentials() CORSOption + func AllowedHeaders(headers []string) CORSOption + func AllowedMethods(methods []string) CORSOption + func AllowedOriginValidator(fn OriginValidator) CORSOption + func AllowedOrigins(origins []string) CORSOption + func ExposedHeaders(headers []string) CORSOption + func IgnoreOptions() CORSOption + func MaxAge(age int) CORSOption + func OptionStatusCode(code int) CORSOption + type OriginValidator = corshandler.OriginValidator