The Response
interface of the Fetch API represents the response to a request.
Documentation Response by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Constructor
new (?body:EitherType<ArrayBuffer, EitherType<ArrayBufferView, EitherType<Blob, EitherType<FormData, EitherType<String, URLSearchParams>>>>>, ?init:ResponseInit)
Throws:
null | DOMError |
---|
Variables
Contains a boolean stating whether the response was successful (status in the range 200-299) or not.
read onlystatusText:String
Contains the status message corresponding to the status code (e.g., OK
for 200
).