NAME
Mojo::Transaction::HTTP - HTTP 1.1 Transaction Container
SYNOPSIS
use Mojo::Transaction::HTTP;
my $tx = Mojo::Transaction::HTTP->new;
my $req = $tx->req;
my $res = $tx->res;
my $keep_alive = $tx->keep_alive;
DESCRIPTION
Mojo::Transaction::HTTP is a container and state machine for HTTP 1.1 transactions.
ATTRIBUTES
Mojo::Transaction::HTTP 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 {...});
continue_timeout
my $timeout = $tx->continue_timeout;
$tx = $tx->continue_timeout(3);
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);
upgrade_cb
my $cb = $tx->upgrade_cb;
$tx = $tx->upgrade_cb(sub {...});
METHODS
Mojo::Transaction::HTTP inherits all methods from Mojo::Transaction and implements the following new ones.
client_leftovers
my $leftovers = $tx->client_leftovers;
client_read
$tx = $tx->client_read($chunk);
client_write
my $chunk = $tx->client_write;
server_leftovers
my $leftovers = $tx->server_leftovers;
server_read
$tx = $tx->server_read($chunk);
server_write
my $chunk = $tx->server_write;