I'm writing a module which subclasses CGI.pm and automatically gzips
output if the browser has "Accept-Encoding: gzip" set and the script
emits a text/html mimetype. To be as drop-in as possible, it uses
select() to make the gzip filter the primary output channel, and
changes it back when the CGI object is destroyed. It's relies on
IO::Zlib to do the heavy lifting.
Questions:
1) I was unable to find anything similar in CPAN. Does anybody know if
I'm duplicating
existing effort (other than mod_gzip for Apache of course)?
2) I'm leaning toward "CGI::Gzip" for the module name. Is this
appropriate capitalization?
3) Would anybody be interested in looking over the code and offering
suggestions before I
upload it? It works fine on simple CGI scripts, and I have designed
it to be mod_perl-
friendly, but I have not yet tested on mod_perl.
Chris
- Re: GZipped CGI output Chris Dolan
- Re: GZipped CGI output Stas Bekman
- Re: GZipped CGI output Chris Dolan
- Re: GZipped CGI output Ken Williams
- Module Proposal: Math::Log Joshua Hoblitt
- Re: Module Proposal: Math::Log Philip Newton
- Re: Module Proposal: Math::Log Joshua Hoblitt
- Re: Module Proposal: Math::Log John Von Essen
- Re: Module Proposal: Math::Log Smylers
- Re: Module Proposal: Math::Log Nicholas Clark
- Re: Module Proposal: Math::Log Tommi M�kitalo
