diff options
author | franck cuny <franck@lumberjaph.net> | 2009-06-25 11:02:02 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2009-06-25 11:02:02 +0200 |
commit | 1626580443d469406df1312f1cc4050403f179e0 (patch) | |
tree | a3c6cb2eac1c21229332b8c9c0bf6b0f19e4ad3c | |
parent | split components in roles, start to update POD (diff) | |
download | moosex-useragent-1626580443d469406df1312f1cc4050403f179e0.tar.gz |
async useragent
-rw-r--r-- | lib/MooseX/UserAgent/Async.pm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/MooseX/UserAgent/Async.pm b/lib/MooseX/UserAgent/Async.pm index 4adcf9a..3c9a09d 100644 --- a/lib/MooseX/UserAgent/Async.pm +++ b/lib/MooseX/UserAgent/Async.pm @@ -32,3 +32,40 @@ sub fetch { } 1; + +__END__ + +=head1 NAME + +RTGI::Role::UserAgent::Async - Fetch an url using AnyEvent::HTTP + +=head1 SYNOPSIS + + package Foo; + + use Moose; + with qw/MooseX::UserAgent::Async/; + + has useragent_conf => ( + isa => 'HashRef', + default => sub { + { name => 'myownbot', }; + } + ); + + my $res = $self->fetch($url, $cache); + ... + my $content = $self->get_content($res); + +=head1 DESCRIPTION + +=head1 BUGS AND LIMITATIONS + +=head1 AUTHOR + +franck cuny C<< <franck@lumberjaph.net> >> + +=head1 LICENCE AND COPYRIGHT + +Copyright (c) 2009, RTGI +All rights reserved. |