Détail du package

hypersponse

bendytree87MIT1.0.3

request like buffering for hyperquest.

hypersponse, request, hyperquest, buffer

readme

NPM Build Status

hypersponse

Simple buffering for hyperquest with the callback style of request.

This module has no dependencies and works in the browser with browserify.

Why

Buffering a stream and normalizing callback paths can pretty verbose - especially if you find yourself doing it a lot.

NOTE: Don't buffer unless you have to. Buffering means loading the entire response into RAM all at once.

Install

Using npm:

npm install hyperquest --save

Example

var hyperquest = require('hyperquest');
var hypersponse = require('hypersponse');

var r = hyperquest('http://localhost:8000');
hypersponse(r, function(error, response, buffer){
  ...
});

License

MIT