kwest-gzip
v0.4.0
Published
gzip plugin for kwest
Downloads
12
Readme
kwest-gzip
gzip middleware for the kwest module
Installation
$ npm install --save kwest-gzip
Use
enable gzip for kwest
var kwestGzip = require('kwest-gzip'),
kwest = require('kwest'),
request = kwest.wrap(kwestGzip());
// requests with "accept-encoding: gzip" header
request('http://www.example.com/gzipped')
.then(function (res) {
// logs gunzipped body
console.log(res.body);
})