diff options
author | franck cuny <franck@lumberjaph.net> | 2009-06-25 18:07:55 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2009-06-25 18:07:55 +0200 |
commit | cd65b24e131df42c477280c3d0f21d662ee6c8d0 (patch) | |
tree | 4710fde2d09880ddebb39332863cc0d28e12b48e | |
parent | add tests (diff) | |
download | moosex-useragent-cd65b24e131df42c477280c3d0f21d662ee6c8d0.tar.gz |
POD
-rw-r--r-- | lib/MooseX/UserAgent.pm | 2 | ||||
-rw-r--r-- | lib/MooseX/UserAgent/Async.pm | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/lib/MooseX/UserAgent.pm b/lib/MooseX/UserAgent.pm index f6dd895..2e1b2f2 100644 --- a/lib/MooseX/UserAgent.pm +++ b/lib/MooseX/UserAgent.pm @@ -115,6 +115,8 @@ protocol. If there is a cache configuration, the url will be checked in the cache, and if there is a match, a 304 HTTP code will be returned. +Return a HTTP::Response object. + =item B<get_content> This method will return a content in utf8. diff --git a/lib/MooseX/UserAgent/Async.pm b/lib/MooseX/UserAgent/Async.pm index 0e5ca16..731a65b 100644 --- a/lib/MooseX/UserAgent/Async.pm +++ b/lib/MooseX/UserAgent/Async.pm @@ -64,6 +64,23 @@ RTGI::Role::UserAgent::Async - Fetch an url using AnyEvent::HTTP =head1 DESCRIPTION +=head2 METHODS + +=over 4 + +=item B<fetch> + +This method will fetch a given URL. This method handle only the http +protocol. + +If there is a cache configuration, the url will be checked in the cache, +and if there is a match, a 304 HTTP code will be returned. + +Return a HTTP::Response object. This headers are different from a +HTTP::Response from LWP::UserAgent. + +=back + =head1 BUGS AND LIMITATIONS =head1 AUTHOR |