![]() |
boost::taar::parse_range — Parse a Range header value against a representation of size bytes (RFC 9110 14.1.2).
// In header: <boost/taar/core/byte_range.hpp> range_set parse_range(std::string_view header, std::uint64_t size, std::size_t max_ranges = 16);
Supports the bytes unit (case-insensitive) with first-last, first- and suffix -length specs, comma separated with optional whitespace. Ranges extending past the end are clipped; ranges starting at or after the end, and -0, are dropped as unsatisfiable. Large numbers saturate instead of overflowing.
Parameters: |
|
||||||
Returns: |
|