You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-cvs@httpd.apache.org by jo...@apache.org on 2004/01/15 06:05:56 UTC
cvs commit: httpd-apreq-2/glue/perl/xsbuilder/Apache/Request Request_pod
joes 2004/01/14 21:05:56
Modified: glue/perl/xsbuilder/Apache/Request Request_pod
Log:
Add Geoff's doc patch for Apache::Request::instance()
Revision Changes Path
1.7 +14 -0 httpd-apreq-2/glue/perl/xsbuilder/Apache/Request/Request_pod
Index: Request_pod
===================================================================
RCS file: /home/cvs/httpd-apreq-2/glue/perl/xsbuilder/Apache/Request/Request_pod,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Request_pod 16 Nov 2003 03:29:14 -0000 1.6
+++ Request_pod 15 Jan 2004 05:05:56 -0000 1.7
@@ -85,6 +85,20 @@
=back
+=head2 instance
+
+The default (and only) behavior of I<Apache::Request> is to intelligently
+cache B<POST> data for the duration of the request. Thus there is no longer
+the need for a separate C<instance()> method as existed in I<Apache::Request>
+for Apache 1.3 - all B<POST> data is always available from each and every
+I<Apache::Request> object created during the request's lifetime.
+
+If you need an C<instance()> method to make ease the pains of porting to
+Apache 2.0, you can add this shortcut to your C<startup.pl>:
+
+ use Apache::Request;
+ *Apache::Request::instance = \&Apache::Request::new;
+
=head2 param
Get or set (TODO) the request parameters (using case-insensitive keys) by