Melon.http.fetch(resource, options)
Starts the process of fetching a resource from the network, returning a promise which is fulfilled once the response is available.
Status: stable
Returns: Promise<Response>
Parameters
| Name | Type | Description |
|---|---|---|
| resource | string | The target resource to be fetched |
| options | Record<string, any> | Options object to populate the method |
Example usage
const result = await fetch("resource").json();