httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Spinetti <>
Subject Re: using mod_deflate inside a module
Date Wed, 04 Jul 2007 15:38:20 GMT
Well my architecture now is a module which gets the contents from 
different sources, elaborate them building a final xml and then it 
registers an output filter which reply to the user.
So I'm already using an output filter.
But if only a source of mine reply with gzip content, I don't see how to 
pass it to mod_deflate, which decompresses it, and then elaborate it 
with the other sources.
Nick, could you advice me with a solution (the only solution I'm seeing 
now is write a function to decompress the content but I'd like to use 
the one given by mod_deflate).

Nick Kew ha scritto:
> On Wed, 04 Jul 2007 17:08:56 +0200
> Marco Spinetti <> wrote:
>> There is something I can't understand.
>> If you declare
>> ap_add_output_filter("INFLATE", ctx, req, conn);
>> how can I call the function to decompress a content and the get the 
>> control again?
>> I knew that  ap_add_output_filter declares an outut filter which is 
>> called after your module.
>> Am I missing something?
> It sounds like you're missing apache's filter architecture.  It's too
> much to summarise in an email, but see my .sig (the site has articles
> as well as the book).  The manpage for mod_filter might also help
> explain what Mike tried to tell you.
> If you want a functional API for (de)compression, then nothing in
> apache is relevant to you, except insofar as the mod_deflate code
> is a usage example.  Of course you can do that: you just lose the
> benefits of Apache's modular architecture, and end up with something
> looking like a monolithic kitchen-sink CGI application.

View raw message