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 06:45:09 GMT
So are you telling me that I should call deflate_in_filter (which is 
defined inside mod_defalte) inside my module and then go on with the 
uncompressed result?
Could you give me some suggestion about how to do it?
Best regards

Mike ha scritto:
> On Tue, Jul 03, 2007 at 05:18:44PM +0200, Marco Spinetti wrote:
>>  I have a question about  how to use a part of mod_deflate in my module.
>>  Inside my module I connect to a external source sending it a dynamic query 
>>  and it replies with a gzip content.
>>  I should take this content, decompress it and then I have to modify it.
>>  I'd like to know if inside my module I could call the function inside 
>>  mod_deflate to decompress the content.
>>  Can I do it?
> Yes, you do. You can attach DEFLATE or INFLATE filter in your module provided
> mod_deflate is loaded.
> Somewhere near the hooks' definition you should put:
> add_output_filter("INFLATE") or smth. Please consult the Apache docs for
> details.

View raw message