JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 48
  • Score
    100M100P100Q58779F
  • License MIT

Promise based HTTP client inspired by clj-http

Package Exports

  • questor

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (questor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

questor

Promise based HTTP client inspired by clj-http

Usage

var questor = require('questor');

questor('https://github.com').then(function (res) {
  // Request was successful
  
  console.log(res.body); // Contains the response body
  console.log(res.headers); // Contains the response headers
  console.log(res.status); // Contains the response status code
}, function (err) {
  // Request failed
  console.log(err);
});

TODO

  • Small resulting browserify bundle
  • Streaming request and response bodies
  • Types for requests, responses and errors