Skip to main content

parse_range_header_with_max_ranges

Function parse_range_header_with_max_ranges 

Source
pub fn parse_range_header_with_max_ranges(
    range_header_value: &str,
    max_ranges: NonZeroUsize,
) -> Result<ParsedRanges, RangeUnsatisfiableError>
Expand description

Like parse_range_header with a configurable maximum amount of acceptable ranges in a single header value.

ยงErrors

Same as parse_range_header