NAME

Mojo::Transaction - HTTP Transaction Base Class

SYNOPSIS

    use base 'Mojo::transaction';

DESCRIPTION

Mojo::Transaction is a HTTP process base class.

ATTRIBUTES

Mojo::Transaction inherits all attributes from Mojo::Stateful and implements the following new ones.

connection

    my $connection = $tx->connection;
    $tx            = $tx->connection($connection);

continue_timeout

    my $continue_timeout = $tx->continue_timeout;
    $tx                  = $tx->continue_timeout(3);

keep_alive

    my $keep_alive = $tx->keep_alive;
    $tx            = $tx->keep_alive(1);

kept_alive

    my $kept_alive = $tx->kept_alive;
    $tx            = $tx->kept_alive(1);

local_address

    my $local_address = $tx->local_address;
    $tx               = $tx->local_address($address);

local_port

    my $local_port = $tx->local_port;
    $tx            = $tx->local_port($port);

remote_address

    my $remote_address = $tx->remote_address;
    $tx                = $tx->remote_address($address);

remote_port

    my $remote_port = $tx->remote_port;
    $tx             = $tx->remote_port($port);

METHODS

Mojo::Transaction inherits all methods from Mojo::Stateful and implements the following new ones.

client_connect

    $tx = $tx->client_connect;

client_connected

    $tx = $tx->client_connected;

client_get_chunk

    my $chunk = $tx->client_get_chunk;

client_info

    my @info = $tx->client_info;

client_is_writing

    my $writing = $tx->client_is_writing;

client_leftovers

    my $leftovers = $tx->client_leftovers;

client_read

    $tx = $tx->client_read($chunk);

client_spin

    $tx = $tx->client_spin;

client_written

    $tx = $tx->client_written($length);

server_accept

    $tx = $tx->server_accept($tx);

server_get_chunk

    my $chunk = $tx->server_get_chunk;

server_handled

    $tx = $tx->server_handled;

server_is_writing

    my $writing = $tx->server_is_writing;

server_leftovers

    my $leftovers = $tx->server_leftovers;

server_read

    $tx = $tx->server_read($chunk);

server_spin

    $tx = $tx->server_spin;

server_tx

    my $tx = $tx->server_tx;

server_written

    $tx = $tx->server_written($bytes);