Interface HttpOptions

Represents the options passed to the constructor of HttpReader.

interface HttpOptions {
    forceRangeRequests?: boolean;
    headers?: Iterable<[string, string]> | Map<string, string>;
    preventHeadRequest?: boolean;
    useRangeHeader?: boolean;
    useXHR?: boolean;

Hierarchy (view full)


forceRangeRequests?: boolean

true to always use Range headers when fetching data.

Default Value

headers?: Iterable<[string, string]> | Map<string, string>

The HTTP headers.

preventHeadRequest?: boolean

true to prevent using HEAD HTTP request in order the get the size of the content.

Default Value

useRangeHeader?: boolean

true to use Range headers when fetching data from servers returning Accept-Ranges headers.

Default Value

useXHR?: boolean

true to rely XMLHttpRequest instead of fetch to fetch data.

Default Value


Generated using TypeDoc