Versions in this module Expand all Collapse all v2 v2.0.1 Feb 2, 2026 Changes in this version + type ErrorWriter func(http.ResponseWriter, int, httpx.Problem) + type Option func(*options) + func WithAuthAllowlist(paths ...string) Option + func WithAuthCheck(fn func(*http.Request) bool) Option + func WithDevBypassHeader(header string, allow bool) Option + func WithErrorWriter(fn ErrorWriter) Option + func WithMaxBodyBytes(n int64) Option + func WithQueryLimits(opts querylimits.Options) Option + func WithQueryLimitsDisabled() Option + func WithRateLimitDisabled() Option + func WithRateLimitOptions(opts ratelimit.Options) Option + func WithRequireAuth(required bool) Option + func WithResolver(resolver identity.Resolver) Option + func WithRouteOverrides(overrides ...RouteOverride) Option + func WithSecureOptions(opts ...securemw.Option) Option + func WithTimeout(d time.Duration) Option + func WithTimeoutDisabled() Option + type Profile struct + Middlewares []func(http.Handler) http.Handler + func New(opts ...Option) (Profile, error) + func OWASPBaseline(opts ...Option) (Profile, error) + func (p Profile) Apply(r ports.HTTPRouter) + type RouteOverride struct + MaxBodyBytes *int64 + Methods []string + Pattern string + QueryLimits *querylimits.Options + QueryLimitsEnabled *bool + RateLimit *ratelimit.Options + RateLimitEnabled *bool + Timeout *time.Duration + TimeoutEnabled *bool