plan_download_response_with_multi_range

Function plan_download_response_with_multi_range 

Source
pub fn plan_download_response_with_multi_range(
    headers: &HeaderMap,
    head_only: bool,
    content_length: u64,
    content_type: &str,
    etag: Option<&str>,
    last_modified: SystemTime,
    policy: DavMultiRangePolicy,
) -> Result<DavDownloadPlan, DavDownloadPlanError>
Expand description

Builds a GET/HEAD plan with an explicitly bounded multi-range policy.

Every limit and the final coalescing pass are applied before open_download opens a backend stream. A request containing one raw range retains the ordinary single-part path.

ยงErrors

Returns an error when validators, ranges, limits, or response headers are invalid.