The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

TSVRPC::Client - TSV-RPC client library

SYNOPSIS

    use TSVRPC::Client;

    my $t = TSVRPC::Client->new(
        base    => 'http://localhost:1978/rpc/',
        agent   => "myagent",
        timeout => 1
    );
    $t->call('echo', {a => 'b'});

DESCRIPTION

The client library for TSV-RPC.

METHODS

my $t = TSVRPC::Client->new();

Create new instance.

base

The base TSV-RPC end point URL.

timeout

Timeout value for each request.

Default: 1 second

agent

User-Agent value.

my ($code, $body, $http_message) = $t->call($method[, \%args[, $encoding]]);

Call the $method with \%args.

$encoding: the encoding for TSVRPC call. Following methods are available.

    B: Base64(Default. Because its very fast)
    Q: Quoted-Printable
    U: URI escape

Return: $code: HTTP status code, $body: body hashref, $http_message: HTTP message.

SEE ALSO

http://fallabs.com/mikio/tech/promenade.cgi?id=97