@zip.js/zip.js
    Preparing search index...

    Interface HttpRangeOptions

    Represents options passed to the constructor of HttpRangeReader and HttpReader.

    interface HttpRangeOptions {
        headers?: Iterable<[string, string], any, any> | Map<string, string>;
        useXHR?: boolean;
        fetch?(input: string, init?: RequestInit): Promise<Response>;
    }

    Hierarchy (View Summary)

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

    The HTTP headers.

    useXHR?: boolean

    true to rely XMLHttpRequest instead of fetch to fetch data.

    false
    
    • The function used to fetch the data. It takes precedence over HttpRangeOptions#useXHR when set. The returned object must expose the status, statusText and headers properties, and the arrayBuffer() method of the Response class.

      Parameters

      • input: string
      • Optionalinit: RequestInit

      Returns Promise<Response>

      fetch