httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Plüm, Rüdiger, VF EITO <ruediger.pl...@vodafone.com>
Subject AW: why does ap_invoke_handler init input filters?
Date Tue, 12 Sep 2006 10:37:29 GMT


> -----Ursprüngliche Nachricht-----
> Von: Issac Goldstand 
> Gesendet: Dienstag, 12. September 2006 12:04
> An: dev@httpd.apache.org
> Betreff: why does ap_invoke_handler init input filters?
> 
> 
> Hi all,
>   I've been trying to solve my confusion on the exact order 
> of hooks and
> filters being invoked inside an HTTP request, and was wondering why
> ap_invoke_filter_init(r->input_filters) is called inside of
> ap_invoke_handler (server/config.c:338) ?
> 
> I can understand initializing output filters at this point, but input
> filters that want to work with the request headers would have been

The purpose of input filters is to process the request body (if present of course).
If you want to do something on the request headers you need to do this in a diffferent
hook (e.g. header_parser). See also mod_setenvif as an example.

> inserted at the create_request hook (and invoked by the time we got to
> post_read_request and the quick-handler, let alone the response
> handler), so what are we really trying to initialize at this point?
> 
> Thanks for the insight,
>   Issac
> 

Regards

Rüdiger

Mime
View raw message