Documentation
    Preparing search index...

    Function toRequestResponse

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

      Parameters

      • response: Response

        The fetch Response to convert.

      • resolveWithFullResponse: boolean = false

        Return the full Response object, otherwise abbreviate the response.

      • simple: boolean = false

        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.