Response
The Response interface of the Fetch API represents the response to a request.
Properties
The body read-only property of the Request interface contains a ReadableStream with the body contents that have been added to the request. Note that a request using the GET or HEAD method cannot have a body and null is returned in these cases.
The redirected read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.
The statusText read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.
The type read-only property of the Response interface contains the type of the response. The type determines whether scripts are able to access the response body and headers.
Functions
The arrayBuffer() method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
The arrayBuffer() method of the Request interface reads the request body and returns it as a promise that resolves with an ArrayBuffer.
The bytes() method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
The bytes() method of the Request interface reads the request body and returns it as a promise that resolves with a Uint8Array.
The formData() method of the Request interface reads the request body and returns it as a promise that resolves with a FormData object.