Skip to main content

Crate http_range_header

Crate http_range_header 

Source

Structs§

ParsedRanges

Enums§

RangeInvalid
Unless the variant says otherwise, the spec says implementors MAY ignore or reject https://www.rfc-editor.org/rfc/rfc9110.html#section-14.2-6
RangeRejected
Rejected because of tolerance, possibly an abusive client.
RangeUnsatisfiableError
A server MAY always ignore a range header https://www.rfc-editor.org/rfc/rfc9110.html#section-14.2-3 which means falling back to ignoring the range header is spec-compliant.
SyntacticallyCorrectRange

Functions§

parse_range_header
Function that parses the content of a range header.
parse_range_header_with_max_ranges
Like parse_range_header with a configurable maximum amount of acceptable ranges in a single header value.