Expand description
Byte range parsing utilities.
Implements structures for representing satisfiable and unsatisfiable byte ranges, following RFC 9110 Section 14.
Structs§
- Satisfiable
Range - Represents a satisfiable inclusive byte range once applied to an entity.
Enums§
- Range
Parse Error - Errors that can occur when parsing or applying range headers.
- Range
Spec - Represents a single byte range specification from the Range header.
Functions§
- compute_
satisfiable_ ranges - Compute satisfiable ranges given entity length. Returns an empty vector when no ranges overlap with the entity.
- format_
content_ range - Format a Content-Range header for a satisfiable range.
- format_
unsatisfied_ range - Format a Content-Range header for unsatisfied ranges.
- parse_
range_ header - Parse a Range header value into byte range specifications.