XML::RPC::UA - Base class for XML::RPC UserAgent
Contents
Copyright & License
Copyright (c) 2008-2009 Mons Anderson.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl
itself.
Methods
The following methods should be implemented
async()
Should return true, if useragent is asyncronous, false otherwise
call($method,$uri,body=>$body,headers=>{http-headers},cb=>$cb->($response));
Should process HTTP-request to $uri, using $method, passing $headers and $body, receive response, and
invoke $cb with HTTP::Response object
Name
XML::RPC::UA - Base class for XML::RPC UserAgent
Synopsis
Generic usage
use XML::RPC::Fast;
my $client = XML::RPC::Fast->new(
$uri,
ua => XML::RPC::UA::LWP->new(
timeout => 10,
ua => 'YourApp/0.01', # default User-Agent http-header
),
);
