
Mojo::Client - Client

use Mojo::Client;
use Mojo::Transaction::Single;
my $tx = Mojo::Transaction::Single->new;
$tx->req->method('GET');
$tx->req->url->parse('http://cpan.org');
my $client = Mojo::Client->new;
$client->process($tx);

Mojo::Client is a full featured async io HTTP 1.1 client.

Mojo::Client implements the following attributes.
continue_timeout my $timeout = $client->continue_timeout;
$client = $client->continue_timeout(5);
keep_alive_timeout my $keep_alive_timeout = $client->keep_alive_timeout;
$client = $client->keep_alive_timeout(15);

Mojo::Client inherits all methods from Mojo::Base and implements the following new ones.
connect$client = $client->connect($tx);
disconnect$client = $client->disconnect($tx);
deposit_connection$client->deposit_connection($name, $connection, $timeout);
open_connectionmy $connection = $client->open_connection($scheme, $address, $port);
process$client = $client->process(@transactions);
process_all$client = $client->process_all(@transactions);
process_app $client = $client->process_app($app, $tx);
$client = $client->process_app('MyApp', $tx);
spinmy $done = $client->spin(@transactions);
spin_app my $done = $client->spin_app($app, $tx);
my $done = $client->spin_app('MyApp', $tx);
test_connectionmy $alive = $client->test_connection($connection);
withdraw_connectionmy $connection = $client->withdraw_connection($name);