Optional
combinetrue
to use Range: bytes=-22
on the first request and cache the EOCD, make sure beforehand that the server supports a suffix range request.
Optional
forcetrue
to always use Range
headers when fetching data.
Optional
headersThe HTTP headers.
Optional
preventtrue
to prevent using HEAD
HTTP request in order the get the size of the content.
false
to explicitly use HEAD
, this is useful in case of CORS where Access-Control-Expose-Headers: Content-Range
is not returned by the server.
Optional
usetrue
to use Range
headers when fetching data from servers returning Accept-Ranges
headers.
Optional
useXHRtrue
to rely XMLHttpRequest
instead of fetch
to fetch data.
Represents the options passed to the constructor of HttpReader.