NAME

Mojo::Pipeline - Pipelined HTTP Transaction Container

SYNOPSIS

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

DESCRIPTION

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

ATTRIBUTES

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

continued

my $continued = $p->continued;

keep_alive

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

req

my $requests = $p->req;

res

my $responses = $p->res;

safe_post

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

Returns true or false if called without arguments. Returns the invocant if called with arguments. If set to true, a pipeline will wait until the responses to previous requests are received before sending a POST.

METHODS

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

new

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

client_connect

$p = $p->client_connect;

client_connected

$p = $p->client_connected;

client_get_chunk

my $chunk = $p->client_get_chunk;

client_info

my ($host, $port) = $p->client_info;

client_leftovers

my $leftovers = $p->client_leftovers;

client_read

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

client_spin

$p = $p->client_spin;

client_written

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

is_writing

my $writing = $p->is_writing;

server_accept

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

server_get_chunk

my $chunk = $p->server_get_chunk;

server_handled

$p = $p->server_handled;

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;

server_written

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