Responseinterface of the Fetch API represents the response to a request.
Responseobject using the
Response.Response()constructor, but you are more likely to encounter a
Responseobject being returned as the result of another API operation—for example, a service worker
Fetchevent.respondWith, or a simple
Headers object associated with the response.
A boolean indicating whether the response was successful (status in the range
299) or not.
Indicates whether or not the response is the result of a redirect (that is, its URL list has more than one entry).
The status code of the response. (This will be
200 for a success).
The status message corresponding to the status code. (e.g.,
The type of the response (e.g.,
The URL of the response.
boolean that indicates whether the body has been read.
Response stream and reads it to completion. It returns a promise that resolves with an
Response stream and reads it to completion. It returns a promise that resolves with the result of parsing the body text as
Response stream and reads it to completion. It returns a promise that resolves with a
string (text). The response is always decoded using UTF-8.