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

    Interface FetchInterface

    Allows a host application to supply its own fetch() implementation (e.g. one which integrates with a CLI framework's shutdown handling and timeout support) instead of a repository or plugin manager calling fetch() directly.

    interface FetchInterface {
        fetch(
            input: string,
            init?: RequestInit & { timeoutMs?: number },
        ): Promise<Response>;
    }
    Index
    • Perform a fetch request.

      Parameters

      • input: string

        the URL to fetch.

      • Optionalinit: RequestInit & { timeoutMs?: number }

        standard RequestInit fields plus an optional timeoutMs.

      Returns Promise<Response>

      the Response. Rejects the same way native fetch() does.