WebService::Async::UserAgent - common API for making HTTP requests to webservices
my $ua = WebService::Async::UserAgent::NaHTTP->new(loop => $loop);
print "was OK" if $ua->get('...')->get->code == 200;
} or warn "Failed - $@";
This is an early release, most things are undocumented and subject to change.
The intention is to provide an abstraction for webservice API calls without hardcoding a dependency on a specific HTTP client (such as Net::Async::HTTP). Although there is very basic support for sync clients such as LWP::UserAgent, they are untested and only there as an example. That may change in future.
Tom Molesworth <TEAM@cpan.org>
Copyright Tom Molesworth 2013-2015. Licensed under the same terms as Perl itself.
To install WebService::Async::UserAgent, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.