Std.Http.Server.Reply
19 public declarations
- acceptQuery
&Array[Str] -> (Str, Str)The media types a resource accepts for a request that carries its terms in
- bytes
Int -> Str -> &Bytes -> Std.Http.ResponseA response carrying arbitrary bytes with an explicit media type.
- computeEtag
Str -> StrComputes a fast hex ETag hash from body content.
- conditional
&Array[(Str, Str)] -> &Std.Http.Response -> Str -> Std.Http.ResponseEvaluates If-None-Match in the request; answers 304 Not Modified on match or attaches ETag on miss.
- empty
Int -> Std.Http.ResponseA response with a status and nothing else.
- gatewayTimeout
Str -> Std.Http.ResponseA 504 Gateway Timeout response.
- html
Int -> Str -> Std.Http.ResponseA response carrying HTML.
- json
Int -> Str -> Std.Http.ResponseA response carrying JSON, already encoded.
- jsonValue
Int -> Std.Json.Json -> Std.Http.ResponseEncode the standard JSON model at the response boundary.
- notModified
Str -> Std.Http.ResponseA 304 Not Modified response with an ETag and empty body.
- page
Int -> Std.Html.Html -> Std.Http.ResponseRender a complete HTML document, including its doctype.
- rendered
Int -> Std.Html.Ssr.Rendered -> Std.Http.ResponseReuse server-rendered output and its UTF-8 length without rendering again.
- serviceUnavailable
Int -> Std.Http.ResponseA 503 Service Unavailable response with a Retry-After directive in seconds.
- text
Int -> Str -> Std.Http.ResponseThe answers a handler gives, apart from the routing that chose it and the
- tooManyRequests
Int -> Std.Http.ResponseA 429 Too Many Requests response with a Retry-After directive in seconds.
- unprocessable
Str -> Std.Http.ResponseThe refusal a body the resource could read but could not act on receives.
- unsupportedMediaType
&Array[Str] -> Std.Http.ResponseThe refusal a body in a type the resource cannot read receives.
- view
Int -> Std.Html.Html -> Std.Http.ResponseRender a typed fragment using the standard HTML escaping rules.
- withEtag
&Std.Http.Response -> Str -> Std.Http.ResponseAttaches an ETag entity tag validator header to a response.
