Dan Brian wrote:
I understand the benefits of a C binding to the Apache API over, say, CGI.pm processing using the environment vars (which is why all my projects use libapreq 1). But since both mod_perl2's Apache::RequestRec and libapreq's Apache::Request implement XS glue to the Apache API (as far as I can tell), I meant to ask about that relationship. Is Apache::RequestRec under 2 analogous to Apache::args under 1?

While the whole issue has always been somewhat confusing, there's no more overlap in MP2. Apache::Request inherits from Apache::RequestRec just like it did from its MP1 equivalent Apache.pm before, and adds parsing and handling of request parameters incl. multipart/form-data and uploads, as well as cookies. MP2 itself doesn't do that anymore, Apache::RequestRec::args only gets/sets the whole query string.


I think adding Apache::Request to the mod_perl distribution might save a few souls from going PHP. Having all these fancy APIs but not basic stuff like parameter accessors probably scares some newcomers away. But since this was mostly true for MP1 already, I guess this must have been rejected long ago.

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to