Skip to content

HttpRangeReaderOptions

Defined in: io/http-reader.ts:5

Options for HttpRangeReader.

optional coalesceGap?: number;

Defined in: io/http-reader.ts:11

Merge missing-page runs separated by at most this many bytes into one request. Default 16384.


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

Defined in: io/http-reader.ts:7

fetch implementation. Defaults to the global fetch.

Parameter Type
input string | URL | Request
init? RequestInit

Promise<Response>


optional headers?: Record<string, string>;

Defined in: io/http-reader.ts:15

Extra request headers (for example authorization).


optional maxCacheBytes?: number;

Defined in: io/http-reader.ts:13

Approximate LRU page-cache budget in bytes. Default 8 MiB.


optional pageSize?: number;

Defined in: io/http-reader.ts:9

Page size cached and fetched at a time. Default 65536.


optional signal?: AbortSignal;

Defined in: io/http-reader.ts:17

Aborts in-flight requests.