FetchImplementation: ((input, init?) => Promise<Response>)

Type declaration

    • (input, init?): Promise<Response>
    • Custom fetch implementation signature.

      Node's built-in fetch (undici) does not read HTTP_PROXY/HTTPS_PROXY/NO_PROXY. Supplying a custom fetch (for example one bound to an undici ProxyAgent dispatcher) is the supported way to route requests through a corporate egress proxy or otherwise customise transport.

      Parameters

      • input: RequestInfo | URL
      • Optional init: RequestInit

      Returns Promise<Response>