BetaOptionalbodyThe body of the request.
OptionalcredentialsIndicates whether the user agent should send or receive cookies from the other domain in the case of cross-origin requests.
OptionalcustomAny custom data.
OptionalheadersThe headers object associated with the request.
OptionalmethodThe request's method (GET, POST, etc).
OptionalmodeThe mode of the request (e.g., cors, no-cors, same-origin, etc).
OptionalresponseThe response type with which the response from the server shall be compatible.
OptionaltimeoutThe number of milliseconds the request can take before automatically being terminated. If undefined or value is 0 then there is no timeout.
The URL of the request.
Generic request API.