From 443918302b9a9fac6c853c77ce49182be38feb6f Mon Sep 17 00:00:00 2001 From: franck cuny Date: Thu, 25 Jun 2009 15:33:29 +0200 Subject: POD, add useragent string to async, tests --- lib/MooseX/UserAgent/Config.pm | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'lib/MooseX/UserAgent/Config.pm') diff --git a/lib/MooseX/UserAgent/Config.pm b/lib/MooseX/UserAgent/Config.pm index d5d6730..1195aee 100644 --- a/lib/MooseX/UserAgent/Config.pm +++ b/lib/MooseX/UserAgent/Config.pm @@ -16,7 +16,7 @@ has 'agent' => ( $ua->agent( $conf->{name} ) if $conf->{name}; $ua->from( $conf->{mail} ) if $conf->{mail}; $ua->max_size( $conf->{max_size} || 3000000 ); - $ua->timeout( $conf->{timeout} || 30 ); + $ua->timeout( $conf->{timeout} || 180 ); $ua; } ); @@ -55,21 +55,21 @@ RTGI::Role::UserAgent::Config =item B UserAgent string used by the HTTP client. Default is to use the LWP or -AnyEvent::HTTP string. +AnyEvent::HTTP string. See L or L. =item B Mail string used by the HTTP client (only for LWP). Default is to use the -LWP string. +LWP string. See L =item B -Max size that will be fetched by the useragent, in octets (only for LWP). -Default is set to 3 000 000. +size limit for response content. The default is 3 000 000 octets. See +L. =item B -Time out. Default is set to 30. +Timeout value in seconds. The default timeout() value is 180 seconds =item B @@ -77,16 +77,21 @@ Time out. Default is set to 30. =item B -If you need caching, set to 1. Default is no cache. +Set to true to activate caching. Defaults is false. =item B -Where to store the cache. +The location in the filesystem that will hold the root of the cache. =item B +The default expiration time for objects place in the cache. Defaults to $EXPIRES_NEVER if not explicitly set. + =item B +The namespace associated with this cache. Defaults to "Default" if not +explicitly set. + =back =back -- cgit v1.2.3