file_range

Function file_range 

Source
pub fn file_range(
    size: NonZero<u64>,
    http_range: Option<HttpRange>,
) -> Result<ContentRange, UnsatisfiableRange>
Expand description

Returns a ContentRange if the provided HttpRange is satisfiable, otherwise it returns UnsatisfiableRange.