HttpRangeReaderOptions
Defined in: io/http-reader.ts:5
Options for HttpRangeReader.
Properties
Section titled “Properties”coalesceGap?
Section titled “coalesceGap?”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.
fetch?
Section titled “fetch?”optional fetch?: (input, init?) => Promise<Response>;Defined in: io/http-reader.ts:7
fetch implementation. Defaults to the global fetch.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
string | URL | Request |
init? |
RequestInit |
Returns
Section titled “Returns”Promise<Response>
headers?
Section titled “headers?”optional headers?: Record<string, string>;Defined in: io/http-reader.ts:15
Extra request headers (for example authorization).
maxCacheBytes?
Section titled “maxCacheBytes?”optional maxCacheBytes?: number;Defined in: io/http-reader.ts:13
Approximate LRU page-cache budget in bytes. Default 8 MiB.
pageSize?
Section titled “pageSize?”optional pageSize?: number;Defined in: io/http-reader.ts:9
Page size cached and fetched at a time. Default 65536.
signal?
Section titled “signal?”optional signal?: AbortSignal;Defined in: io/http-reader.ts:17
Aborts in-flight requests.