@flowscripter/dynamic-cli-framework
    Preparing search index...

    Interface FetchService

    Service allowing a Command to perform a fetch() request, with an optional timeout and shutdown signals gracefully aborting the request.

    interface FetchService {
        fetch(input: string | URL, options?: FetchOptions): Promise<Response>;
    }

    Implemented by

    Index
    • Perform a fetch request.

      Parameters

      Returns Promise<Response>

      the Response. Rejects the same way native fetch() does: a genuine network failure rejects with a TypeError, a timeout (via FetchOptions.timeoutMs) rejects with a DOMException whose name is "TimeoutError", and a shutdown-triggered abort rejects with a DOMException whose name is "AbortError".