You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Ken Williams <ke...@forum.swarthmore.edu> on 2000/08/28 04:00:54 UTC
"Beta" testers for new Apache::Filter?
Hi,
I've got a new version of Apache::Filter that I've been working on, and
I wondered whether anyone would like to try it out and give me an
opinion on it.
The new version is structured very differently from previous versions.
It is now a subclass of Apache, rather than a bunch of extra functions
that are pushed into the Apache namespace. This is much cleaner, and
allows for a much smoother integration with existing code (handler
modules or Registry scripts). For instance, you can call
$r->send_http_header() as usual, $r->send_fd() is supported, and there
shouldn't be any need to write different code for the filtered and
non-filtered cases.
The interface has changed slightly. Instead of using
"$fh = $r->filter_input()" as the filter registration mechanism, you do
"$r = $r->filter_register()". $r is then blessed into the Apache::Filter
class, which is a subclass of Apache.
If people want to use Apache::Registry scripts in this context, you'll
need to apply some patches to Apache::PerlRun and Apache::RegistryNG
that make them easier to subclass. I'm hoping these patches will be
accepted into the main distro.
Let me know if you're interested.
------------------- -------------------
Ken Williams Last Bastion of Euclidity
ken@forum.swarthmore.edu The Math Forum