-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add gzip support #18
Comments
i'd take a patch, i'll need it eventually and write it myself :) |
Shouldn't be too hard. I'll see what I can do. :-) |
If #25 gets pulled then you can just pipe the filed stream to var oppressor = require('oppressor');
var filed = require('filed');
var http = require('http');
var server = http.createServer(function (req, res) {
filed(__dirname + '/data.txt')
.pipe(oppressor(req))
.pipe(res)
;
});
server.listen(8000); Letting other libraries like oppressor handle compression is pretty much what pipes should be all about. |
Any updates on this request ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I love this module, but unfortunately, there's no good way to add zlib support without rewriting it. Would it be possible to add zlib support at some point in the future?
The text was updated successfully, but these errors were encountered: