logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

XML::RPC::UA - Base class for XML::RPC UserAgent

Author

       Mons Anderson, "<mons@cpan.org>"

perl v5.34.0                                       2022-06-28                                  XML::RPC::UA(3pm)

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
               ),
           );

See Also