Optional Readonlyb2Override the response Cache-Control header.
Optional Readonlyb2Override the response Content-Disposition header.
Optional Readonlyb2Override the response Content-Encoding header.
Optional Readonlyb2Override the response Content-Language header.
Optional Readonlyb2Override the response Content-Type header.
Optional Readonlyb2Override the response Expires header.
Optional ReadonlymethodHTTP method. Defaults to 'GET'. Use 'HEAD' to fetch only
response headers. Prefer the dedicated B2Object.head /
Bucket.head method over this option — those return a
body-less result so callers never have to remember to drain the
empty body of a HEAD response.
Optional ReadonlyonCallback invoked as the response body is consumed.
Progress is byte-driven, not request-driven: the callback fires per
chunk as the caller reads the returned body stream, and the final
partsCompleted: 1 event only fires once the stream is read to
completion. Downloads that are dropped or aborted partway through
will NOT emit a completePart() event.
Optional ReadonlyrangeHTTP Range header value (e.g., "bytes=0-999").
Optional ReadonlyserverSSE-C decryption parameters, required if the file was uploaded with SSE-C.
Optional ReadonlysignalAbort signal for cancelling the download.
Options accepted by B2Object.download and B2Object.downloadById.