serve_file_with_http_range

Function serve_file_with_http_range 

Source
pub fn serve_file_with_http_range(
    body: Bytes,
    http_range: Option<HttpRange>,
) -> Result<BodyRange<Bytes>, UnsatisfiableRange>
Expand description

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