Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2026 Changes in this version + func NewBodyLimit(maxBytes int64, opts ...BodyLimitOption) func(http.Handler) http.Handler + func NewCORS(cfg CORSConfig) func(http.Handler) http.Handler + func NewLogging(logger *slog.Logger) func(http.Handler) http.Handler + func NewRateLimit(limiter RateLimiter, opts ...RateLimitOption) func(http.Handler) http.Handler + type BodyLimitOption func(*bodyLimitConfig) + func WithBodyLimitExemptPaths(paths ...string) BodyLimitOption + type CORSConfig struct + AllowCredentials bool + AllowedHeaders []string + AllowedMethods []string + AllowedOrigins []string + MaxAge int + type RateLimitOption func(*rateLimitConfig) + func WithExemptPaths(paths ...string) RateLimitOption + type RateLimiter interface + Allow func(key string) bool + Close func() error + RetryAfter func(key string) int + func NewInMemoryRateLimiter(requestsPerMinute, burst int) RateLimiter