redirect
Fetch Response: Redirect.
Creates a new FetchResponse instance (of type Impl) which redirects for a given pair of URLs.
From MDN: "The redirect() method of the Response interface returns a Response resulting in a redirect to the specified URL."
See also: MDN, Response.redirect.
Return
Redirect response instance.
Parameters
url
URL which should ultimately be consulted (after applying this redirect) to produce a response.
status
Status to provide within this redirect response. Defaults to 302
, by spec.