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

/kwest-gzip/

    Package Sidebar

    Install

    npm i kwest-gzip

    Weekly Downloads

    1

    Version

    0.4.0

    License

    MIT

    Last publish

    Collaborators

    • janpotoms