Miss any of our Open RFC calls?Watch the recordings here! »

kwest-gzip

0.4.0 • Public • Published

kwest-gzip Build Status Dependency Status

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);
  })

Keywords

Install

npm i kwest-gzip

DownloadsWeekly Downloads

0

Version

0.4.0

License

MIT

Last publish

Collaborators

  • avatar