Re: Pushing OutputHandler using PerlFixupHandler

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

From: Tom Schindl
Subject: Re: Pushing OutputHandler using PerlFixupHandler
Date: 19:36 on 22 Mar 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stas Bekman wrote:
| 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?
|

Exactly as the title of the section should explain:
"Adding OutFilters dynamically"  ;-)


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

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

iD8DBQFCQHOmkVPeOFLgZFIRAqEOAKCoC+D4bfkoe1XyhOgbsGp45nJScwCfQgyu
bkWIHyKhyR2bjZBuNCbTbCU=
=ELI8
-----END PGP SIGNATURE-----

(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
Tom Schindl 19:36 on 22 Mar 2005

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