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?
Mike ha scritto:
On 7/4/07, Marco Spinetti <[EMAIL PROTECTED]> wrote:
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?
you need to include mod_deflate in config:
LoadModule mod_deflate....
then in function where you call hooks you need to put this function:
ap_add_output_filter("INFLATE", ctx, req, conn);
and you'll have inflate filter right before your own. chekc docs for
proper usage and parameters.
module my_module = {
STANDARD20_MODULE_STUFF,
my_create_dir_conf, /* Create config rec for Directory */
my_merge_dir_conf, /* Merge config rec for Directory */
my_create_svr_conf, /* Create config rec for Host */
my_merge_svr_conf, /* Merge config rec for Host */
my_cmds, /* Configuration directives */
my_hooks <--- add ap_add... function call into body of this function...
} ;
Kind regards.