pub fn prepare_collection_upload_headers(
batch_id: &BatchId,
opts: Option<&CollectionUploadOptions>,
) -> HeaderPairsExpand 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.