Fetch a resource from the network. It returns a Promise
that resolves to theResponse
to that Request
, whether it is successful or not.
Provides a way to easily construct a set of key/value pairs representingform fields and their values, which can then be easily sent using theXMLHttpRequest.send() method. It uses the same format a form would use if theencoding type were set to "multipart/form-data".
This Fetch API interface allows you to perform various actions on HTTPrequest and response headers. These actions include retrieving, setting,adding to, and removing. A Headers object has an associated header list,which is initially empty and consists of zero or more name and value pairs.You can add to this using methods like append() (see Examples). In allmethods of this interface, header names are matched by case-insensitive bytesequence.
This Fetch API interface represents a resource request.