Skip to main content

Module response

Module response 

Source
Expand description

Responses.

siderite owns IntoResponse so response types document themselves for OpenAPI through IntoResponse::describe (default: nothing). Handlers may return impl IntoResponse.

Structs§

Html
HTML response body.
Json
JSON body (response) or JSON request extractor.
JsonDump
JSON response serialized with explicit DumpOptions (FastAPI response_model_exclude_none and friends).
NoContent
204 No Content response.
PlainText
text/plain response body.
WithStatus
Overrides the status code of an inner response.

Constants§

SUCCESS
Status code under which handler return types document success.

Traits§

IntoResponse
Convert a value into an HTTP response.

Type Aliases§

Response
An HTTP response with a siderite Body.