kwest-gzip

v0.4.0
gzip plugin for kwest
kwest gzip

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);
  })
npm i kwest-gzip

Metadata

  • MIT
  • Whatever
  • Jan Potoms
  • released 9/27/2014

Downloads

Maintainers