Skip to main content

parse_range_spec

Function parse_range_spec 

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

Parse a Range header into a RangeSpec 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 multiple ranges are specified.