See also Chain of Responsibility: http://en.wikipedia.org/wiki/Chain-of-responsibility_pattern Arturo, you should post your wonderful comments to the bugzilla bug; this isn't the right forum.
----- Original Message ---- From: Arturo 'Buanzo' Busleiman <[EMAIL PROTECTED]> To: Mozdev Project Owners List <[email protected]> Sent: Thursday, July 12, 2007 12:36:31 PM Subject: Re: [Project_owners] On Page Load -----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----- _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
_______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
