How it worksSection titled How it works
The Fetch API provides an interface for fetching resources from the edge network, such as external resources across the network.
Fetch provides a generic definition of
Response objects. It allows them to handle or modify requests and responses or any kind of use case that may require you to generate your responses programmatically.
It also defines related concepts like CORS and the HTTP Origin header semantics, supplanting its separate definitions elsewhere.
ConstructorSection titled Constructor
PropertiesSection titled Properties
string - the request object or string that represents the URL to fetch.
requestInit - the content of the request.
ExampleSection titled Example
For more information on Fetch API visit MDN Web Docs.