questor
Promise based HTTP client inspired by clj-http
Last updated 11 years ago by evilhackerdude .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install questor 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (11 years ago)

9 Versions

  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           12 years ago
  • 1.0.0-alpha.3                                ...           13 years ago
  • 1.0.0-alpha.2                                ...           13 years ago
  • 1.0.0-alpha.1                                ...           13 years ago
  • 1.0.0-alpha                                ...           13 years ago
  • 0.0.3                                ...           13 years ago
  • 0.0.2                                ...           13 years ago
  • 0.0.1                                ...           13 years ago
Maintainers (1)
Downloads
Total 34
Today 0
This Week 0
This Month 18
Last Day 0
Last Week 4
Last Month 1
Dependencies (4)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE