Versions in this module Expand all Collapse all v0 v0.3.0 Aug 24, 2026 Changes in this version + func ClientIP(r *http.Request, trustProxy bool) string + func RenderError(w http.ResponseWriter, r *http.Request, log *slog.Logger, err error) + func RequestID(ctx context.Context) string + func WithHTTP(ctx context.Context, w http.ResponseWriter, r *http.Request) context.Context + func WithRequestID(ctx context.Context, id string) context.Context + func WriteJSON(w http.ResponseWriter, status int, v any) + func WriteProblem(w http.ResponseWriter, r *http.Request, p Problem) + type HTTPPair struct + R *http.Request + W http.ResponseWriter + func HTTPFrom(ctx context.Context) (HTTPPair, bool) + type Problem struct + Detail string + Errors map[string][]string + RequestID string + Status int + Title string + Type string v0.3.0-rc.1 Aug 23, 2026