npm.io
0.1.3 • Published 10 years ago

any-http-reqwest

Licence
Apache-2
Version
0.1.3
Deps
0
Vulns
0
Weekly
0
Stars
5

AnyHTTP adapter for reqwest

AnyHTTP adapter for the reqwest AJAX micro-library.

Usage

This adapter is implemented as an ES6 module which can be installed with jspm and loaded via SystemJS as follows:

import {Http} from 'github:argo-rest/any-http-reqwest';

var httpClient = new Http;
httpClient.
  get('https://example.com').
  then(({body, headers}) => {
    console.log("body:", body);
    console.log("content-type:", headers['Content-Type']);
  });

Keywords