pub fn parse_single_byte_range(
raw: &str,
total_size: u64,
) -> Result<HttpByteRange, HttpRangeError>Expand description
Parses and resolves one RFC byte-range specifier against a representation length.
Multiple ranges are reported separately so callers can choose whether to reject them or implement multipart responses. End bounds beyond the representation are clamped as required by HTTP range semantics.