Request
The Request
interface of the Fetch API represents a resource request.
Properties
The cache
read-only property of the Request interface contains the cache mode of the request.
The credentials
read-only property of the Request interface reflects the value given to the Request.Request() constructor in the credentials
option.
The destination
read-only property of the Request interface returns a string describing the type of content being requested.
The method
read-only property of the POST
, etc.) A String indicating the method of the request.
The mode
read-only property of the Request interface contains the mode of the request (e.g., cors
, no-cors
, same-origin
, or navigate
.) This is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable.
The redirect
read-only property of the Request interface contains the mode for how redirects are handled.
The referrerPolicy
read-only property of the referrer information, sent in the Referer header, should be included with the request.
The read-only signal
property of the Request interface returns the AbortSignal associated with the request.