optional content
optional response initialisiton
MDN: Takes a Response stream and reads it to completion.
MDN: Takes a Response stream and reads it to completion. It returns a promise that resolves with an ArrayBuffer.
Takes a Response stream and reads it to completion.
Takes a Response stream and reads it to completion. It returns a promise that resolves with a Blob.
MDN: Contains a Boolean that indicates whether the body has been read.
MDN: Contains a Boolean that indicates whether the body has been read.
Takes a Response stream and reads it to completion.
Takes a Response stream and reads it to completion. It returns a promise that resolves with a FormData object.
Contains the Headers object associated with the response.
Takes a Response stream and reads it to completion.
Takes a Response stream and reads it to completion. It returns a promise that resolves with a JSON object. //todo: define the JSON type, and return a Promise[JSON] as per spec
Contains a boolean stating whether the response was successful (status in the range 200-299) or not.
Contains the status code of the response (e.g., 200 for a success).
Contains the status message corresponding to the status code (e.g., OK for 200).
Takes a Response stream and reads it to completion.
Takes a Response stream and reads it to completion. It returns a promise that resolves with a USVString (text).
Contains the type of the response
Contains the URL of the response.
¶6.4 Response class in whatwg spec