Skip to content

HttpRangeOptions

Options for httpRangeSource.

readonly optional blockSize?: number

Fetches are aligned to blocks of this many bytes (default 16 384: each object a reader checks costs one block, so larger blocks fetch more of the file).


readonly optional credentials?: RequestCredentials

fetch’s credentials mode.


readonly optional fetch?: (input, init?) => Promise<Response>

The fetch to use (default: the global one).

MDN Reference

URL | RequestInfo

RequestInit

Promise<Response>


readonly optional headers?: Readonly<Record<string, string>>

Extra request headers (authorisation, …). Range and If-Range are lamina’s.


readonly optional signal?: AbortSignal

Aborts the probe; reads take their own signal.


readonly optional tail?: number

The first request asks for this many bytes at the end of the file (default 65 536).