Skip to main content

content_range_starts_at

Function content_range_starts_at 

Source
fn content_range_starts_at(headers: &HeaderMap, want: u64) -> bool
Expand description

Parse Content-Range: bytes <start>-<end>/<total> and say whether the body starts where the caller asked. A missing or unreadable header counts as no, which costs a restart rather than a splice.