NAME
Curse::Client - HTTP Client
SYNOPSIS
use Curse::Client;
use Curse::Transaction;
my $tx = Curse::Transacrtion->new;
$tx->req->method('GET');
$tx->req->url->parse('http://cpan.org');
my $client = Curse::Client->new;
$client->process($tx);
DESCRIPTION
Curse::Client is a full featured async io HTTP 1.1 client.
ATTRIBUTES
keep_alive_timeout
my $keep_alive_timeout = $client->keep_alive_timeout;
$client = $client->keep_alive_timeout(15);
timeout
my $timeout = $client->timeout;
$client = $client->timeout(5);
METHODS
Curse::Client inherits all methods from Nevermore and implements the following new ones.
connect
$tx = $client->connect($tx);
disconnect
$tx = $client->disconnect($tx);
deposit_connection
$client->deposit_connection($name, $connection, $timeout);
process
@transactions = $client->process(@transactions);
process_all
@transactions = $client->process_all(@transactions);
spin
my $done = $client->spin(@transactions);
test_connection
my $alive = $client->test_connection($connection);
withdraw_connection
my $connection = $client->withdraw_connection($name);