@michaelcoxon/rest-client
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

rest-client

A simple REST client

Installation

The library is available on NPM...

npm -i @michaelcoxon/rest-client

101

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);

Readme

Keywords

Package Sidebar

Install

npm i @michaelcoxon/rest-client

Weekly Downloads

1

Version

1.6.0

License

Apache-2.0

Unpacked Size

2.18 MB

Total Files

200

Last publish

Collaborators

  • michaelcoxon