• Make a request to the specified resource.

    If there is a field line that is longer than 8192 bytes in the response received, a TypeError is thrown.

    Returns

    a Response that contains the result of resource retrieval

    Parameters

    • input: RequestInfo

      a path to the resource or a Request object that configures the retrieval

    • Optional init: RequestInit

      additional configuration for the retrieval

    Returns Promise<Response>