Re: Pushing OutputHandler using PerlFixupHandler

[prev] [thread] [next] [Date index for 2005/03/22]

From: Stas Bekman
Subject: Re: Pushing OutputHandler using PerlFixupHandler
Date: 19:30 on 22 Mar 2005
Tom Schindl wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> and now without a typo :-(

Looks good, Tom. One question though: Why not just do:

<Files *\.html >
   PerlOutputFilterHandler Beso::OutFilterHandler
</Files>

or did you mean the patch to be just a demonstration of how to add a 
filter if you are already inside some pre-response phase handler?

> +  <Files *\.html >
> +    PerlFixupHandler MyApache::AddFilterDyn 
> +  </Files>
[...]
> +  sub handler {
> +    my $r = shift;
> +
> +    $r->add_output_filter(\&MyApache::FilterObfuscate::handler);
> +
> +    return Apache::OK;


        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

(message missing)

Pushing OutputHandler using PerlFixupHandler
Thomas Schindl 12:08 on 21 Mar 2005

Re: Pushing OutputHandler using PerlFixupHandler
Geoffrey Young 12:47 on 21 Mar 2005

Re: Pushing OutputHandler using PerlFixupHandler
Stas Bekman 19:30 on 22 Mar 2005

Generated at 15:10 on 27 Mar 2005 by mariachi v0.52