1.1.0 • Published 9 years ago

request-then v1.1.0

Weekly downloads
14
License
MIT
Repository
github
Last release
9 years ago

request-then

A mashup of request with then/promise

Build Status NPM version

Install

npm install request-then --save

Example

var request = require('request-then');

request('http://example.com')
  .then(function handleResponse (response) {
    console.log(response);
  }, function handleError (error) {
    console.log(error);
  });