Std.App.Problem
13 public declarations
- detailed
Int -> Str -> Std.App.Problem.Problemstatus(code)carryingdetail. - explain
&Std.App.Problem.ProblemError -> StrA one-line description of a refusal.
- fromReport
&Std.Validate.Report -> Std.App.Problem.ProblemA 422 problem whose
errorsmember maps each faulty field to what it - MEDIA_TYPE
StrThe media type a problem is served as.
- parse
Str -> Result[Std.App.Problem.Problem, Std.App.Problem.ProblemError]Reads a problem body, as a client receiving one does.
- Problem
A problem-details body (RFC 9457).
- ProblemError
Why a body could not be read as a problem.
- respond
&Std.App.Problem.Problem -> Std.Http.ResponseThe problem as a response with its status and
application/problem+json. - status
Int -> Std.App.Problem.ProblemA problem of type
about:blankwhose title is the status's reason phrase. - toJson
&Std.App.Problem.Problem -> Std.Json.JsonThe problem as a JSON object: standard members first, empty ones omitted,
- typed
Str -> Int -> Str -> Std.App.Problem.ProblemA problem with its own type URI and title.
- uniform
Std.Http.Server.Route.Request -> fn(Std.Http.Server.Route.Request) -> Std.Http.Response -> Std.Http.ResponseA step that turns every 4xx or 5xx response not already a problem into
- withExtension
&Std.App.Problem.Problem -> Str -> Std.Json.Json -> Std.App.Problem.ProblemThe problem with one more extension member. A name used by a standard
