NAME
WebService::Async::UserAgent - common API for making HTTP requests to webservices
VERSION
version 0.006
SYNOPSIS
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 - $@";
DESCRIPTION
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.
METHODS
new
Instantiate.
SEE ALSO
AUTHOR
Tom Molesworth <TEAM@cpan.org>
LICENSE
Copyright Tom Molesworth 2013-2015. Licensed under the same terms as Perl itself.