API (v2.0.0) - Giro3D
    Preparing search index...

    Variable fetcher

    fetcher: {
        addEventListener: <T extends "error">(
            type: T,
            listener: EventListener<FetcherEventMap[T], T, FetcherEventDispatcher>,
        ) => void;
        arrayBuffer: (
            input: URL | RequestInfo,
            options?: RequestInit,
        ) => Promise<ArrayBuffer>;
        blob: (input: URL | RequestInfo, options?: RequestInit) => Promise<Blob>;
        fetch: (
            input: URL | RequestInfo,
            options?: FetchOptions,
        ) => Promise<Response>;
        hasEventListener: <T extends "error">(
            type: T,
            listener: EventListener<FetcherEventMap[T], T, FetcherEventDispatcher>,
        ) => boolean;
        json: <T = unknown>(
            input: URL | RequestInfo,
            options?: RequestInit,
        ) => Promise<T>;
        removeEventListener: <T extends "error">(
            type: T,
            listener: EventListener<FetcherEventMap[T], T, FetcherEventDispatcher>,
        ) => void;
        text: (input: URL | RequestInfo, options?: RequestInit) => Promise<string>;
        texture: (
            input: URL | RequestInfo,
            options?: RequestInit & { createDataTexture?: boolean; flipY?: boolean },
        ) => Promise<Texture>;
        xml: (input: URL | RequestInfo, options?: RequestInit) => Promise<Document>;
    }

    Exposes an API to perform HTTP requests. This should be used instead of the Fetch API in order to benefit from some error-checking, automatic configuration (from the HttpConfiguration module), etc.

    Type Declaration

    • addEventListener: <T extends "error">(
          type: T,
          listener: EventListener<FetcherEventMap[T], T, FetcherEventDispatcher>,
      ) => void
    • arrayBuffer: (input: URL | RequestInfo, options?: RequestInit) => Promise<ArrayBuffer>
    • blob: (input: URL | RequestInfo, options?: RequestInit) => Promise<Blob>
    • fetch: (input: URL | RequestInfo, options?: FetchOptions) => Promise<Response>
    • hasEventListener: <T extends "error">(
          type: T,
          listener: EventListener<FetcherEventMap[T], T, FetcherEventDispatcher>,
      ) => boolean
    • json: <T = unknown>(input: URL | RequestInfo, options?: RequestInit) => Promise<T>
    • removeEventListener: <T extends "error">(
          type: T,
          listener: EventListener<FetcherEventMap[T], T, FetcherEventDispatcher>,
      ) => void
    • text: (input: URL | RequestInfo, options?: RequestInit) => Promise<string>
    • texture: (
          input: URL | RequestInfo,
          options?: RequestInit & { createDataTexture?: boolean; flipY?: boolean },
      ) => Promise<Texture>
    • xml: (input: URL | RequestInfo, options?: RequestInit) => Promise<Document>