OptionalbodyThe body of the request.
OptionalcredentialsWhether the user agent should send or receive cookies from the other domain in 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, for example cors, no-cors, or same-origin.
OptionalresponseThe type that the response from the server must be compatible with.
OptionaltimeoutThe number of milliseconds the request may take before it is terminated. If the value is undefined or 0, there is no timeout.
The URL of the request.
Generic request API.