Constructor for an HTTP response.
The initial content of the response Body.
The Request configuration object.
A boolean representing whether the Body has been consumed already or not.
Get the Response
headers.
A Headers
object of the HTTP response headers, for the Request
.
Get if the response was ok/successful.
a boolean that is true if the response was successful, false if not.
Get the HTTP status of the response.
an unsigned 16 bit integer of the status code.
Get the text assosciated with the status code of the response.
a string associated with the status text for the response status code.
Get the URL of where the response came from.
a string of the URL.
an ArrayBuffer
for the Body content (if it contains one).
a string representation of the Body ArrayBuffer
content.
Generated using TypeDoc
Export the
as-fetch
Fetch API that we can use with Fastly.