Versions in this module Expand all Collapse all v1 v1.1.0 Nov 6, 2026 v1.0.0 Nov 6, 2026 Changes in this version + func Chain(h http.Handler, m ...Middleware) http.Handler + func ClientIP(r *http.Request, trusted []*net.IPNet) net.IP + func Compression(next http.Handler) http.Handler + func RequestID(next http.Handler) http.Handler + func SecurityHeaders(next http.Handler) http.Handler + type CORSConfig struct + Credentials bool + Headers []string + MaxAge time.Duration + Methods []string + Origins []string + type Middleware func(http.Handler) http.Handler + func Authenticate(check func(*http.Request) (context.Context, error)) Middleware + func Authorize(check func(*http.Request) error) Middleware + func BodyLimit(n int64) Middleware + func CORS(c CORSConfig) (Middleware, error) + func ContentType(want string) Middleware + func CorrelationID(trustForwarded bool) Middleware + func Logging(l *slog.Logger) Middleware + func Recovery(report func(context.Context, error)) Middleware + func Timeout(d time.Duration) Middleware