NAME
TSVRPC::Client - TSV-RPC client library
SYNOPSIS
use
TSVRPC::Client;
my
$t
= TSVRPC::Client->new(
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.
- 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.