Versions in this module Expand all Collapse all v0 v0.2.0 Oct 4, 2026 Changes in this version + func Middleware(opts Options) func(http.Handler) http.Handler + func WriteError(w http.ResponseWriter, r *http.Request, err error) v0.1.0 Oct 4, 2026 Changes in this version + const DefaultMaxBodyBytes + func DecodeJSON(r *http.Request, dst any, maxBytes int64) error + func NotFound(opts Options) http.Handler + func Report(ctx context.Context, logger *slog.Logger, event Event) + func Wrap(handler Handler, opts Options) http.Handler + type Error struct + Cause error + Code string + Detail string + Status int + func AsProblem(err error) *Error + func Problem(status int, code, detail string, cause error) *Error + func Render(w http.ResponseWriter, r *http.Request, err error) *Error + func (e *Error) Error() string + func (e *Error) Unwrap() error + type Event struct + Code string + Duration time.Duration + ErrorAfterCommit bool + Method string + Status int + type Handler func(http.ResponseWriter, *http.Request) error + type Options struct + Logger *slog.Logger