The Request interface of the Fetch API represents a resource request.
Documentation Request by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Constructor
Variables
read onlycache:RequestCache
Contains the cache mode of the request (e.g., default, reload, no-cache).
read onlycredentials:RequestCredentials
Contains the credentials of the request (e.g., "omit", "same-origin", "include"). The default is "same-origin".
read onlydestination:RequestDestination
Returns a string from the RequestDestination enum describing the request's destination. This is a string indicating the type of content being requested.
read onlyintegrity:String
Contains the subresource integrity value of the request (e.g., sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=).
read onlymode:RequestMode
Contains the mode of the request (e.g., cors, no-cors, same-origin, navigate.)
read onlyredirect:RequestRedirect
Contains the mode for how redirects are handled. It may be one of follow, error, or manual.
read onlyreferrerPolicy:ReferrerPolicy
Contains the referrer policy of the request (e.g., no-referrer).