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
  [EMAIL PROTECTED]                            The Math Forum


Reply via email to