0.0.2 • Published 10 years ago

hyperquext-gzip v0.0.2

Weekly downloads
4
License
-
Repository
github
Last release
10 years ago

hyperquext-gzip

Gzip compression for hyperquext requests.

If you have long running streams that depend on extermal resources, you might want abort the stream when timing out.

Usage:

Decorating Hyperquext:

var request = hyperquextGzip(hyperquext)

From now on you can specify in options {gzip: true} and you're set.

Example

var hyperquextGzip = require("hyperquextGzip");
var hyperquext = require("hyperquext");
var request = hyperquextGzip(hyperquext);

request('http://techcrunch.com',{gzip:true}, function (err, res) {
  console.log(res.headers)
}).pipe(process.stdout)

install

With npm do:

npm install hyperquext-gzip

license

MIT