A simple REST client
The library is available on NPM...
npm -i @michaelcoxon/rest-client
The only implementation at the moment is for in-browser XMLHttpRequest.
use it like this...
import { XhrHttpClient } from '@michaelcoxon/rest-client'
const client = new XhrHttpClient();
const url = 'https://example.com/api/get-data';
const result = await client.getObjectAsync(url);
Generated using TypeDoc