Skip to main content

Interface: RangeReaderOptions

Defined in: types.ts:134

Options for RangeReader.

Properties​

cache?​

optional cache?: ByteCache | { dataBytes?: number; metadataBytes?: number; }

Defined in: types.ts:141

Byte budgets of the default in-memory cache, by purpose, or a user-supplied ByteCache.


cacheMode?​

optional cacheMode?: RequestCache

Defined in: types.ts:154

RequestInit.cache for every request. Default: the browser's default.


fetch?​

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

Defined in: types.ts:136

Transport. Defaults to globalThis.fetch; tests and custom auth replace it.

Call Signature​

(input, init?): Promise<Response>

MDN Reference

Parameters​
input​

URL | RequestInfo

init?​

RequestInit

Returns​

Promise<Response>

Call Signature​

(input, init?): Promise<Response>

MDN Reference

Parameters​
input​

string | URL | Request

init?​

RequestInit

Returns​

Promise<Response>


maxGap?​

optional maxGap?: number | "median"

Defined in: types.ts:146

Largest gap between two reads that still share a request. "median" uses the batch's median read length.


maxOverfetchBytes?​

optional maxOverfetchBytes?: number

Defined in: types.ts:148

Largest number of bytes in one request that no read covers.


maxRequestBytes?​

optional maxRequestBytes?: number

Defined in: types.ts:150

Largest merged request; also the largest whole object accepted from a server that ignores Range.


minMetadataReadBytes?​

optional minMetadataReadBytes?: number

Defined in: types.ts:152

Metadata reads shorter than this are widened to an aligned block of this size.