Re: Apache::Request parameters
Dave Rolsky <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 5 Mar 2005, Patrick Michael Kane wrote:
> Currently, the only way that I can see to get parameters like TEMP_DIR
> or POST_MAX to the Mason-created Apache::Request object is to subclass
> prepare_request() in HTML::Mason::ApacheHandler.
>
> Since prepare_request() is pretty beefy, this seems potentially error
> prone. Should we offer some user-tweakable paramaters so they can get
> these sorts of arguments to Apache::Request?
>
> If I'm missing some easy way to do this with the existing codebase,
> please let me know.
I often write my own handler() sub for this sort of thing:
my $ah = HTML::Mason::ApacheHandler->new( ... );
sub handler
{
# 2MB max upload size
my $apr = Apache::Request->new( shift, POST_MAX => ( 1024 ** 2 ) * 2 );
return $ah->handle_request($apr);
}
-dave
/*===================================================
VegGuide.Org www.BookIRead.com
Your guide to all that's veg. My book blog
===================================================*/
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click