Expand description
Pure-function resolution of the HTTP Range: bytes=... header against a
known content length. No axum/HTTP types are involved here — this module
is unit-tested standalone in tests/range.rs.
Enums§
- Range
Error - Why an HTTP
Rangeheader could not be resolved to a concreteByteRange.
Functions§
- resolve_
range - Resolves a single-range
Range: bytes=...header value (without the leading header name) against a known content length. Supportsstart-end(inclusive end),start-(open-ended), and-suffix_len(lastsuffix_lenbytes, clamped to the content length).