Skip to main content

Module response

Module response 

Source
Expand description

Typed response construction for authored HTTP Endpoint handlers.

Modules§

header
HTTP header types

Structs§

HeaderName
Represents an HTTP header field name
HeaderValue
Represents an HTTP header field value.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).

Enums§

ResponseBuildError
An authoring-time failure while constructing an HTTP response.

Functions§

empty
Returns an empty response without a representation content type.
json
Serializes a typed value and returns a JSON response.
problem
Returns an RFC 9457-compatible problem response with a stable extension code.
text
Returns a UTF-8 plain-text response.