WebService::Async::UserAgent - common API for making HTTP requests to webservices
version 0.006
use strict; use warnings; use WebService::Async::UserAgent::NaHTTP; my $ua = WebService::Async::UserAgent::NaHTTP->new(loop => $loop); eval { 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.
Instantiate.
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.
cpanm
cpanm WebService::Async::UserAgent
CPAN shell
perl -MCPAN -e shell install WebService::Async::UserAgent
For more information on module installation, please visit the detailed CPAN module installation guide.