compress-response
streaming http response compression thingy
Installation
npm install compress-response
Example
Input
var http = compress = server = http server '/' headers: 'accept-encoding': 'gzip' { console console console console}
Output
body === "YEAH!"?
false
and these are the headers
{ 'content-type': 'text/plan',
'content-encoding': 'gzip',
date: 'Sun, 16 Nov 2014 01:54:42 GMT',
connection: 'close',
'transfer-encoding': 'chunked' }