pub async fn get_range(
client: &Client,
url: &Url,
start: u64,
end: Option<u64>,
validator: Option<&str>,
expected_total: Option<u64>,
) -> Result<Response, TransferError>Expand description
A ranged GET, with the response validated against what we asked for.
validator is sent as If-Range, so a resource that changed since we
started comes back as a 200 full body — which we detect and reject rather
than splicing into the middle of our file (PRD Invariant 4).