On 04/07/2006, at 17:30, Stas Bekman wrote:
Scott Penrose wrote:
Is this a request or a connection filter? It won't work as a
connection filter (r is not available there).
It is an ouptut filter.
But what output filter? There are two:
http://perl.apache.org/docs/2.0/user/handlers/
filters.html#HTTP_Request_vs__Connection_Filters
Ahhhh....
package Example::Expand;
use strict;
use warnings;
use Apache2::Filter ();
use Apache2::RequestRec ();
use Apache2::SubRequest ();
use APR::Table ();
use Apache2::Const -compile => qw(OK DECLINED);
use constant BUFF_LEN => 1024;
sub handler {
my $f = shift;
...
}
Then in my configuration I put:
PerlOutputFilterHandler Example::Expand
So by the look of the above - Output Filter
Scott