NAME

Mojo::Transaction::Pipeline - Pipelined HTTP Transaction Container

SYNOPSIS

use Mojo::Transaction::Pipeline;
my $p = Mojo::Transaction::Pipeline->new;

DESCRIPTION

Mojo::Transaction::Pipeline is a container for pipelined HTTP transactions.

ATTRIBUTES

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

active

my $active = $p->active;
$p         = $p->active([Mojo::Transaction::Single->new]);

build_tx_cb

my $cb = $p->build_tx_cb;
$p     = $p->build_tx_cb(sub {...});

inactive

my $inactive = $p->inactive;
$p           = $p->inactive([Mojo::Transaction::Single->new]);

finished

my $finished = $p->finished;
$p           = $p->finished([Mojo::Transaction::Single->new]);

safe_post

my $safe_post = $p->safe_post;
$p            = $p->safe_post(1);

METHODS

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

new

my $p = Mojo::Transaction::Pipeline->new;
my $p = Mojo::Transaction::Pipeline->new($tx1);
my $p = Mojo::Transaction::Pipeline->new($tx1, $tx2, $tx3);

client_connected

$p = $p->client_connected;

client_get_chunk

my $chunk = $p->client_get_chunk;

client_info

my $info = $p->client_info;

client_is_writing

my $writing = $p->client_is_writing;

client_leftovers

my $leftovers = $p->client_leftovers;

client_read

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

client_spin

$p = $p->client_spin;

server_get_chunk

my $chunk = $p->server_get_chunk;

server_is_writing

my $writing = $p->server_is_writing;

server_leftovers

my $leftovers = $p->server_leftovers;

server_read

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

server_spin

$p = $p->server_spin;

server_tx

my $tx = $p->server_tx;