ReadonlybodyReadonlybodyReadonlyheadersReadonlyokRedirects to a new URL with a specified status code.
The URL to redirect to.
The HTTP status code for the redirect (301 or 302).
ReadonlyredirectedSends 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.
OptionalstatusCode: numberOptional HTTP status code.
Sends a file as the response.
The file instance to return.
OptionalfileName: stringOptional file name to use for download.
OptionalmimeType: 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.
ReadonlystatusReadonlystatusReadonlytypeReadonlyurl
This Fetch API interface represents the response to a request.
MDN Reference