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, $status_line, $body) = $t->call($method, \%args);
-
Call the $method with \%args.
Return: $code: HTTP status code, $status_line: HTTP status line, $body: body hashref.