fetch(input: any, init?: RequestInit): Promise
Starts the process of fetching a resource. Default configuration parameters will be applied to the Request. The constructed Request will be passed to registered request interceptors before being sent. The Response will be passed to registered Response interceptors before it is returned.
Parameters
input: any
The resource that you wish to fetch. Either a
Request object, or a string containing the URL of the resource.
init?: RequestInit
An options object containing settings to be applied to
the Request.
Returns
A Promise for the Response from the fetch request.