---
name: "XML::RPC::UA"
section: "3pm"
platform: "linux"
package: "libxml-rpc-fast-perl"
version: "0.8-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/XML::RPC::UA"
---

# XML::RPC::UA(3pm)

Base class for XML::RPC UserAgent

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

## 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

## 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>"`
