Skip to content

bendytree/hypersponse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

`response` style buffering for hyperquest

Resources

License

Stars

Watchers

Forks

Packages

No packages published