@cityjson/flatcitybuf
    Preparing search index...

    Interface FetchRangeReaderOpts

    interface FetchRangeReaderOpts {
        fetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        fetchSize?: number;
        signal?: AbortSignal;
    }
    Index
    fetch?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    Injection point for tests (a counting wrapper) and environments without a global fetch. Defaults to globalThis.fetch.

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    fetchSize?: number

    Caps a single physical fetch issued on a cache miss past the open prefetch. Defaults to DEFAULT_FETCH_SIZE (1 MB).

    signal?: AbortSignal

    Aborts every request this reader issues, at any point in its lifetime -- the one made by open() and every later read(). Wired directly into the underlying fetch() call so a signal that fires mid-flight actually cancels the in-progress request; an already-aborted signal is also honoured before any work starts.