stas 2004/08/08 11:26:20 Modified: src/docs/2.0/api/Apache RequestRec.pod Const.pod Log: $r->method, method_number API sync Revision Changes Path 1.27 +25 -5 modperl-docs/src/docs/2.0/api/Apache/RequestRec.pod Index: RequestRec.pod =================================================================== RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/Apache/RequestRec.pod,v retrieving revision 1.26 retrieving revision 1.27 diff -u -u -r1.26 -r1.27 --- RequestRec.pod 2 Aug 2004 18:03:37 -0000 1.26 +++ RequestRec.pod 8 Aug 2004 18:26:20 -0000 1.27 @@ -905,19 +905,26 @@ =head2 C<method> -Get the current request method (e.g. C<GET>, C<HEAD>, C<POST>, etc.): +Get/set the current request method (e.g. C<GET>, C<HEAD>, C<POST>, etc.): - $method = $r->method(); + $method = $r->method(); + $pre_method = $r->method($new_method); =over 4 =item obj: C<$r> ( C<L<Apache::RequestRec object|docs::2.0::api::Apache::RequestRec>> ) +=item opt arg1: C<$new_method> ( string ) + +a new value + =item ret: C<$method> ( string ) The current method as a string +if C<$new_method> was passed the previous value is returned. + =item since: 1.99_15 =back @@ -929,23 +936,36 @@ =head2 C<method_number> -What's HTTP method was issued by the client (C<Apache::M_GET>, +Get/set the HTTP method, issued by the client (C<Apache::M_GET>, C<Apache::M_POST>, etc.) - $methnum = $r->method_number(); + $methnum = $r->method_number(); + $prev_methnum = $r->method_number($new_methnum); =over 4 =item obj: C<$r> ( C<L<Apache::RequestRec object|docs::2.0::api::Apache::RequestRec>> ) -=item ret: C<$methnum> (integer) +=item opt arg1: C<$new_methnum> ( C<L<Apache::Const :methods +constant|docs::2.0::api::Apache::Const/C__methods_>> ) + +a new value + +=item ret: C<$methnum> ( C<L<Apache::Const :methods +constant|docs::2.0::api::Apache::Const/C__methods_>> ) + +The current method as a number + +if C<$new_methnum> was passed the previous value is returned. =item since: 1.99_15 =back See the C<L<$r-E<gt>allowed|/C_allowed_>> entry for examples. + + 1.15 +5 -3 modperl-docs/src/docs/2.0/api/Apache/Const.pod Index: Const.pod =================================================================== RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/Apache/Const.pod,v retrieving revision 1.14 retrieving revision 1.15 diff -u -u -r1.14 -r1.15 --- Const.pod 5 Aug 2004 08:36:50 -0000 1.14 +++ Const.pod 8 Aug 2004 18:26:20 -0000 1.15 @@ -1365,7 +1365,8 @@ use Apache::Const -compile => qw(:methods); -The C<:methods> group is for XXX constants. +The C<:methods> constants group is used in conjunction with +C<L<$r-E<gt>method_number|docs::2.0::api::Apache::RequestRec/C_method_number_>>. @@ -1462,6 +1463,7 @@ =back +corresponds to the HTTP C<GET> method @@ -1594,7 +1596,7 @@ =back - +corresponds to the HTTP C<POST> method @@ -1630,7 +1632,7 @@ =back - +corresponds to the HTTP C<PUT> method
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]