• Fetches data after transformation of Headers

    Parameters

    • URL: string

      The URL to fetch data from

    • OptionaluserHeaders: HeadersInit

      Optional User provided headers for the request to make request more realistic

    Returns Promise<Response>

    • A promise that resolves to an ArrayBuffer containing the response data

    Throws if request is rejected (non 200/206 status)

    Throws if response body is null

    Throws if any network or processing error occurs