streaming http compression response negotiator
You can use plain old streams:
var oppressor = ;var fs = ;var http = ;var server = http;server;
or you can use fancy streaming static file server modules like filed that set handy things like etag, last-modified, and content-type headers for you:
var oppressor = ;var filed = ;var http = ;var server = http;server;
var oppressor =
Return a duplex stream that will be compressed with gzip, deflate, or no compression depending on the accept-encoding headers sent.
oppressor will emulate calls to http.ServerResponse methods like
so that modules like filed that expect to be
piped directly to the response object will work.
With npm do:
npm install oppressor