• Converts a fetch Response object into a request-like response object.

    Parameters

    • response: Response

      The fetch Response to convert.

    • Optional resolveWithFullResponse: boolean

      Return the full Response object, otherwise abbreviate the response.

    • Optional simple: boolean

      Outright fail if anything other than a successful response is returned in the response.

    Returns Promise<Response | AbbreviatedResponse>

    A promise that resolves to a RequestResponse object.