
Mojo::Transaction::Single - HTTP Transaction Container

use Mojo::Transaction::Single;
my $tx = Mojo::Transaction::Single->new;
my $req = $tx->req;
my $res = $tx->res;
my $keep_alive = $tx->keep_alive;

Mojo::Transaction::Single is a container for HTTP transactions.

Mojo::Transaction::Single inherits all attributes from Mojo::Transaction and implements the following new ones.
continue_handler_cb my $cb = $tx->continue_handler_cb;
$tx = $tx->continue_handler_cb(sub {...});
continued my $continued = $tx->continued;
$tx = $tx->continued(1);
handler_cb my $cb = $tx->handler_cb;
$tx = $tx->handler_cb(sub {...});
keep_alive my $keep_alive = $tx->keep_alive;
$tx = $tx->keep_alive(1);
req my $req = $tx->req;
$tx = $tx->req(Mojo::Message::Request->new);
res my $res = $tx->res;
$tx = $tx->res(Mojo::Message::Response->new);

Mojo::Transaction::Single inherits all methods from Mojo::Transaction and implements the following new ones.
client_connected$tx = $tx->client_connected;
client_get_chunkmy $chunk = $tx->client_get_chunk;
client_infomy $info = $tx->client_info;
client_leftoversmy $leftovers = $tx->client_leftovers;
client_read$tx = $tx->client_read($chunk);
client_spin$tx = $tx->client_spin;
server_get_chunkmy $chunk = $tx->server_get_chunk;
server_read$tx = $tx->server_read($chunk);
server_spin$tx = $tx->server_spin;