Readonly
bodyReadonly
bodyReadonly
headersReadonly
okRedirects to a new URL with a specified status code.
The URL to redirect to.
The HTTP status code for the redirect (301 or 302).
Readonly
redirectedSends content as a response with specified content type and file name.
The content to return.
The content type of the content.
The file name for the content.
Sends data content with optional status code and content type.
The data content to return.
The content type of the data.
Optional
statusCode: numberOptional HTTP status code.
Sends a file as the response.
The file instance to return.
Optional
fileName: stringOptional file name to use for download.
Optional
mimeType: stringOptional MIME type of the file.
Sends HTML content as the response.
The HTML content to return.
Sends plain text as the response.
The text content to return.
Readonly
statusReadonly
statusReadonly
typeReadonly
url
This Fetch API interface represents the response to a request.
MDN Reference