Leo wrote:
> Hello all:
> 
> I want to use Compress::Zlib to deflate contents being sent to the client.
> 
> One way is using it's gzopen(<file or filehandle>, <mode>) call.
> 
> Is there a filehandle that represents the output stream to the client?
> 
> How do I get it?
> 
> I am writing my own mod_perl handler for Apache2 (mod_perl2.0 from svs)

if you're using apache 2 then just use mod_deflate - that's what it is for.

  http://httpd.apache.org/docs-2.0/mod/mod_deflate.html

unlike with apache 1.3/mod_perl 1.0, mod_deflate will compress all output on
the way to the client, even dynamically generated scripts or content handlers.

HTH

--Geoff

Reply via email to