-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm not sure if the apache-api even supports things like this but it
would really rock. Take the following situation:

- -------------------------8<-------------------------
<Files *.xml>
PerlFixUpHandler My::Handler
SetOutputFilter FILTERA
SetOutputFilter FILTERB
</Files>


package My::Handler;

use Apache::RequestRec;
use Apache2::Filter;
use Apache2::FilterRec;

sub handler {
~   my $r = shift;
~   my $output_filters = $r->output_filters();

~   for my $frec ($output_filters->frec, $output_filters->next->frec) {
~       if( $frec->name eq "FILTERA" ) {
~           $frec->add_filter(sub { .... });
~       }
~   }
}
- -------------------------8<-------------------------

Another question is can I somehow register non-mod-perl filters using
mod_perl. E.g. could I register the DEFALTE-Filter using mod_perl. I
suppose it would mean to write a bit of XS which wrapps the real filter
but can this be done in a generic way?

Because I have no idea whether this is complete nonsense or is already
possible at the moment any comments would be great.

Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCraVXkVPeOFLgZFIRAu2dAKCMsGs40x5T5JpDZ+/5BkHnc47I4gCgpyed
9gnYoZfA7mbF9GSBBysPzi0=
=CCsX
-----END PGP SIGNATURE-----

Reply via email to