Skip to main content

Module response

Module response 

Source

Structs§

Error
Response
An HTTP response. Build one inside [Controller::process] and return it.
ResponseStatusCodeReasonPhrase
StatusCodeReasonPhrase

Constants§

STATUS_CODE_REASON_PHRASE

Functions§

content_range_header_value
The Content-Range value for a single-part body, or None when the response shouldn’t carry one. RFC 9110 §14.4 gives Content-Range meaning only on 206 Partial Content (and 416, which rws answers with a plain error body), so full 200 responses get no such header. range.end is inclusive.