httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike <>
Subject Re: using mod_deflate inside a module
Date Tue, 03 Jul 2007 21:37:10 GMT
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

View raw message