httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <>
Subject AddOutputFilter hook needed?
Date Fri, 15 Sep 2000 15:26:29 GMT
Suppose that if a filter is specified in AddOutputFilter, a hook is
called (before the insert_filter hook) to tell the module that the
hook will be added.  Any AddOutputFilter parameter string/tokens would
be passed to the hook.

This hook would give the module the opportunity to 

a) note that it must avoid calling ap_add_filter() itself during the
   insert_filter hook

b) parse the AddOutputFilter parameter string and possibly report an
   error, which would result in an HTTP error (500?)

c) set up context data in the ap_filter_t to avoid am-I-initialized
   logic at each entry to the filter

How much before the insert_filter hook could it be called?  Right
after processing the configuration perhaps?

It has to be called after the dir config with AddOutputFilter has been
processed; it has to be called after relevant filters have been
registered.  Currently, filters may be registered at any time.

Jeff Trawick | | PGP public key at web site:
          Born in Roswell... married an alien...

View raw message