Crate range_requests

Crate range_requests 

Source

Modules§

headers

Structs§

BodyRange
A container for the payload slice and the optional Content-Range header.
ContentRange
A container for the payload range and the optional Content-Range header.
UnsatisfiableRange
An unsatisfiable range request.

Functions§

file_range
Returns a ContentRange if the provided HttpRange is satisfiable, otherwise it returns UnsatisfiableRange.
serve_file_with_http_range
Returns a BodyRange of Bytes if the provided HttpRange is satisfiable, otherwise it returns UnsatisfiableRange.