NAME
Curse::Transaction - HTTP Transactions
SYNOPSIS
use Curse::Transaction;
my $tx = Curse::Transaction->new;
my $req = $tx->req;
my $res = $tx->res;
my $keep_alive = $tx->keep_alive;
DESCRIPTION
Curse::Transaction is a generic container for HTTP transactions.
ATTRIBUTES
Curse::Transaction inherits all attributes from Curse::Stateful and implements the following new ones.
connection
my $connection = $tx->connection;
$tx = $tx->connection($connection);
keep_alive
my $keep_alive = $tx->keep_alive;
my $keep_alive = $tx->keep_alive(1);
request
my $req = $tx->req;
my $req = $tx->request;
$tx = $tx->request(Curse::Message::Request->new);
response
my $res = $tx->res;
my $res = $tx->response;
$tx = $tx->response(Curse::Message::Response->new);
METHODS
Curse::Transaction inherits all methods from Curse::Stateful.