diff options
Diffstat (limited to 'lib')
-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 |