Skip to content

michaelcoxon/rest-client

Repository files navigation

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

About

A simple REST client.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •