# XML::RPC::UA - Base class for XML::RPC UserAgent - perldoc - [phpMan]

## NAME
    [XML::RPC::UA](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ARPC%3A%3AUA/markdown) - Base class for [XML::RPC](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ARPC/markdown) UserAgent

## SYNOPSIS
    Generic usage

        use [XML::RPC::Fast](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ARPC%3A%3AFast/markdown);

        my $client = [XML::RPC::Fast](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ARPC%3A%3AFast/markdown)->new(
            $uri,
            ua => [XML::RPC::UA::LWP](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ARPC%3A%3AUA%3A%3ALWP/markdown)->new(
                timeout => 10,
                ua => 'YourApp/0.01', # default User-Agent http-header
            ),
        );

## 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](https://www.chedong.com/phpMan.php/perldoc/HTTP%3A%3AResponse/markdown) object

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.

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

