Interface ZipDirectoryEntryImportHttpOptions

Represents the options passed to ZipDirectoryEntry#importHttpContent.

interface ZipDirectoryEntryImportHttpOptions {
    checkSignature?: boolean;
    commentEncoding?: string;
    extractAppendedData?: boolean;
    extractPrependedData?: boolean;
    filenameEncoding?: string;
    forceRangeRequests?: boolean;
    headers?: Iterable<[string, string]> | Map<string, string>;
    password?: string;
    preventClose?: boolean;
    preventHeadRequest?: boolean;
    rawPassword?: Uint8Array;
    signal?: AbortSignal;
    transferStreams?: boolean;
    useCompressionStream?: boolean;
    useRangeHeader?: boolean;
    useWebWorkers?: boolean;
    useXHR?: boolean;

Hierarchy (view full)


checkSignature?: boolean

true to check the signature of the entry.

Default Value

commentEncoding?: string

The encoding of the comment of the entry.

extractAppendedData?: boolean

true to extract the appended data into ZipReader#appendedData.

Default Value

extractPrependedData?: boolean

true to extract the prepended data into ZipReader#prependedData.

Default Value

filenameEncoding?: string

The encoding of the filename of the entry.

forceRangeRequests?: boolean

true to always use Range headers when fetching data.

Default Value

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

The HTTP headers.

password?: string

The password used to decrypt the content of the entry.

preventClose?: boolean

true to prevent closing of Writer#writable when calling Entry#getData.

Default Value

preventHeadRequest?: boolean

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

Default Value

rawPassword?: Uint8Array

The password used to encrypt the content of the entry (raw).

signal?: AbortSignal

The AbortSignal instance used to cancel the decompression.

transferStreams?: boolean

true to transfer streams to web workers when decompressing data.

Default Value

useCompressionStream?: boolean

true to use the native API CompressionStream/DecompressionStream to compress/decompress data.

Default Value

useRangeHeader?: boolean

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

Default Value

useWebWorkers?: boolean

true to use web workers to compress/decompress data in non-blocking background processes.

Default Value

useXHR?: boolean

true to rely XMLHttpRequest instead of fetch to fetch data.

Default Value


Generated using TypeDoc