Skip to main content

content_range_header_value

Function content_range_header_value 

Source
pub fn content_range_header_value(
    status_code: i16,
    content_range: &ContentRange,
) -> Option<String>
Expand description

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.