The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mojo::Transaction - Transaction Base Class

SYNOPSIS

    use base 'Mojo::Transaction';

DESCRIPTION

Mojo::Transaction is an abstract base class for transactions.

ATTRIBUTES

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

connection

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

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_read

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

client_write

    my $chunk = $tx->client_write;

is_paused

    my $paused = $tx->is_paused;

is_websocket

    my $is_websocket = $tx->is_websocket;

is_writing

    my $writing = $tx->is_writing;

pause

    $tx = $tx->pause;

resume

    $tx = $tx->resume;

server_read

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

server_write

    my $chunk = $tx->server_write;

SEE ALSO

Mojolicious, Mojolicious::Book, http://mojolicious.org.