Skip to main content

parse_range_spec

Function parse_range_spec 

Source
pub fn parse_range_spec(header: &str) -> Result<Vec<RangeSpec>, RangeError>
Expand description

Parse a Range header into RangeSpec entries without validating against resource size.

This is useful when you want to parse the header before knowing the resource size.

ยงErrors

Returns an error if the syntax is invalid or too many ranges are specified.