Skip to main content
Module

x/zipjs/index.js>HttpOptions

JavaScript library to zip and unzip files supporting multi-core compression, compression streams, zip64, split files and encryption.
Go to Latest
interface HttpOptions
implements HttpRangeOptions
import { type HttpOptions } from "https://deno.land/x/zipjs@v2.7.42/index.js";

Represents the options passed to the constructor of HttpReader.

Properties

optional
useRangeHeader: boolean

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

optional
forceRangeRequests: boolean

true to always use Range headers when fetching data.

optional
preventHeadRequest: boolean

true 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
combineSizeEocd: boolean

true to use Range: bytes=-22 on the first request and cache the EOCD, make sure beforehand that the server supports a suffix range request.