Expand description
Explicit response values.
A handler may return a plain value, which is sent as 200, or one of these
results when it needs to control the status code or the headers.
Structs§
- Lino
Result - A handler result carrying a status code and headers alongside the value.
Enums§
- Body
- The body of a response: a value to encode, or nothing at all.
Functions§
- accepted
- A
202 Acceptedcarrying a value. - created
- A
201 Createdcarrying a value and aLocation. - no_
content - A
204 No Content. - ok
- A
200 OKcarrying a value. - raw_
response - A response whose body is already encoded, bypassing negotiation.
- status
- A response with an explicit status code and a value.
- status_
empty - A response with an explicit status code and no body.