
The Fetch class is an isomorphic utility built on top of the native Fetch API, meaning it can be used in both Node.js and browsers.
The send, connect, delete, get, head, options, patch, post, put and trace methods can be used to send a request.
import { Fetch } from '@aracna/core';
(async () => {
let response;
response = await Fetch.send('https://dummyjson.com/users');
if (response instanceof Error) return;
// will log FetchResponse
console.log(response.data);
})();