SheetXL - v1.0.2
    Preparing search index...

    Class Fetcher

    The default IFetcher: http: and https: through the global fetch, and whatever else is registered.

    Implements

    Index
    • get isIFetcher(): true

      For runtime type checking.

      Returns true

    • Fetches input with the handler registered for its scheme. A URL without a scheme goes to the https handler.

      Parameters

      • input: string
      • Optionalinit: RequestInit

      Returns Promise<Response>

      The response; rejects with a TypeError when no handler serves the scheme, as fetch does for a URL it cannot reach. In a browser the default handlers reject with a FormulaError.Blocked when the site responded but does not allow web pages to read it.

    • Serves a URL scheme with handler, replacing the handler it had.

      Parameters

      • scheme: string

        The scheme, with or without its colon: 'https', 'resource:'.

      • handler: Handler

      Returns () => void

      A function that removes the registration.