NAME
Mojo::Transaction::Single - HTTP Transaction Container
SYNOPSIS
use Mojo::Transaction::Single;
my $tx = Mojo::Transaction::Single->new;
my $req = $tx->req;
my $res = $tx->res;
my $keep_alive = $tx->keep_alive;
DESCRIPTION
Mojo::Transaction::Single is a container for HTTP transactions.
ATTRIBUTES
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);
METHODS
Mojo::Transaction::Single inherits all methods from Mojo::Transaction and implements the following new ones.
client_connected
$tx = $tx->client_connected;
client_get_chunk
my $chunk = $tx->client_get_chunk;
client_info
my $info = $tx->client_info;
client_leftovers
my $leftovers = $tx->client_leftovers;
client_read
$tx = $tx->client_read($chunk);
client_spin
$tx = $tx->client_spin;
server_get_chunk
my $chunk = $tx->server_get_chunk;
server_read
$tx = $tx->server_read($chunk);
server_spin
$tx = $tx->server_spin;