tako-gzip

gzip for tako

tako-gzip

A simple gzip middleware for Tako.

Uses negotiator to only gzip when the http request Accept-Encoding include gzip.

  npm install tako tako-gzip
var gzip = require("tako-gzip");
 
// gzip responses when possible 
app.on('request', gzip);
 
// response is now gzipped. 
app.route('/').json({
  "hello": "gzip"
});