Skip to main content

prepare_collection_upload_headers

Function prepare_collection_upload_headers 

Source
pub fn prepare_collection_upload_headers(
    batch_id: &BatchId,
    opts: Option<&CollectionUploadOptions>,
) -> HeaderPairs
Expand description

Build the header set for a tar POST /bzz collection upload.

Caller should run validate_collection_upload_options first to fail fast on header-injection payloads in index_document / error_document; this function silently drops values containing CR / LF / NUL as defense in depth.