[Project_owners] On Page Load

Arturo 'Buanzo' Busleiman buanzo at buanzo.com.ar
Thu Jul 12 09:36:31 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Adam Judson wrote:
> See: https://bugzilla.mozilla.org/show_bug.cgi?id=286159

The final comment, (#28, https://bugzilla.mozilla.org/show_bug.cgi?id=286159#c28)
suggests that there should be a filtering API. I'd even go further, claiming that something like how
Apache implements input and output filters could be nice. Of course, not exactly the same way
(Buckets and Brigades), but maybe like this:

ap_register_input_filter("MYFILTERNAME", input_filter_function, NULL, AP_FTYPE_CONNECTION);
ap_register_output_filter("MYFILTERNAME", output_filter_function, NULL, AP_FTYPE_CONNECTION);

The last parameter specifies the type of the filter. We have connection filters, request filters,
body filters, etc, etc.

So, when Apache gets data, it gets processed through the input filter, and when it sends output to
the client, it gets processed through the output filter. You can modify anything you want (I'm
implementing the Encrypted Request OpenPGP extension for HTTP like that).

Just a thought. There already is a good, solid input/output filter for an http server, why not
implement something similar, XPCOM/Geck/Mozilla based, for an http client?

- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
¿Su empresa consume demasiado ancho de banda? ¡Consulteme!
Free (as in Freedom) Punk Rock from Argentina: http://www.futurabanda.com.ar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGlliPAlpOsGhXcE0RCouIAJsGvJZ43a0CmoyPXJxSrBbGK/4r4gCbBHEq
6E/EoSGeMQVyz2IjCiHM6eQ=
=yEUq
-----END PGP SIGNATURE-----


More information about the Project_owners mailing list