Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Docs-dev

Apache::RequestRec typo

 

 

ModPerl docs-dev RSS feed   Index | Next | Previous | View Threaded


modperl-list at 2xlp

May 31, 2006, 1:03 PM

Post #1 of 2 (2142 views)
Permalink
Apache::RequestRec typo

First off...
>>>

The get-able part of this method is only available if PerlOptions
+GlobalRequest is in effect or if Apache2->request($new_r) was called
earlier. So instead of setting PerlOptions +GlobalRequest, one can
set the global request from within the handler.

<<<



Apache2->request($new_r) doesn't exist

Based on the docs above, i'm guessing this is a typo for

Apache2::RequestUtil->request($new_r)

which gives the expected behavior



Second..

The description is a bit awkward.

I'd suggest this

>>>

Example of setting the global request from the handler:

sub handler
{
my $r= shift;
Apache2::RequestUtil->request($r);
my $apr= Apache2::Request->new( $r , DISABLE_UPLOADS=>1 ,
POST_MAX=>10_000 );
<<<
















---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe[at]perl.apache.org
For additional commands, e-mail: docs-dev-help[at]perl.apache.org


pgollucci at p6m7g8

May 31, 2006, 1:29 PM

Post #2 of 2 (1989 views)
Permalink
Re: Apache::RequestRec typo [In reply to]

All this is in the docs already. I'll find the links at some point for you.


Jonathan Vanasco wrote:
>
> First off...
> >>>
>
> The get-able part of this method is only available if PerlOptions
> +GlobalRequest is in effect or if Apache2->request($new_r) was called
> earlier. So instead of setting PerlOptions +GlobalRequest, one can set
> the global request from within the handler.
>
> <<<
>
>
>
> Apache2->request($new_r) doesn't exist
>
> Based on the docs above, i'm guessing this is a typo for
>
> Apache2::RequestUtil->request($new_r)
>
> which gives the expected behavior
>
>
>
> Second..
>
> The description is a bit awkward.
>
> I'd suggest this
>
> >>>
>
> Example of setting the global request from the handler:
>
> sub handler
> {
> my $r= shift;
> Apache2::RequestUtil->request($r);
> my $apr= Apache2::Request->new( $r , DISABLE_UPLOADS=>1 ,
> POST_MAX=>10_000 );
> <<<
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docs-dev-unsubscribe[at]perl.apache.org
> For additional commands, e-mail: docs-dev-help[at]perl.apache.org


--
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci[at]p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F

"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe[at]perl.apache.org
For additional commands, e-mail: docs-dev-help[at]perl.apache.org

ModPerl docs-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.