Skip to content
Simple promise wrapper for http.request and https.request.
JavaScript
Find file
Latest commit 38382c2 Jamie Mason 1.0.1
Failed to load latest commit information.
.gitignore
.npmignore
README.md
index.js
package.json 1.0.1

README.md

q-request

Simple promise wrapper for http.request and https.request.

Installation

$ npm install -d q-request

Usage

var qRequest = require('q-request');

qRequest.get({
  hostname: 'raw.github.com',
  path: '/JamieMason/q-request/master/package.json',
  secure: true
}).then(function(body) {
  console.log(body);
});
Something went wrong with that request. Please try again.