Mojo::Transaction::HTTP man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Mojo::Transaction::HTTUser Contributed Perl DocumentMojo::Transaction::HTTP(3)

NAME
       Mojo::Transaction::HTTP - HTTP 1.1 Transaction Container

SYNOPSIS
	 use Mojo::Transaction::HTTP;

	 my $tx = Mojo::Transaction::HTTP->new;

	 my $req = $tx->req;
	 my $res = $tx->res;

	 my $keep_alive = $tx->keep_alive;

DESCRIPTION
       Mojo::Transaction::HTTP is a container for HTTP 1.1 transactions as
       described in RFC 2616.

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

   "on_upgrade"
	 my $cb = $tx->on_upgrade;
	 $tx	= $tx->on_upgrade(sub {...});

       Callback to be invoked for WebSocket upgrades.

   "on_request"
	 my $cb = $tx->on_request;
	 $tx	= $tx->on_request(sub {...});

       Callback to be invoked for requests.

   "req"
	 my $req = $tx->req;
	 $tx	 = $tx->req(Mojo::Message::Request->new);

       HTTP 1.1 request, defaults to a Mojo::Message::Request object.

   "res"
	 my $res = $tx->res;
	 $tx	 = $tx->res(Mojo::Message::Response->new);

       HTTP 1.1 response, defaults to a Mojo::Message::Response object.

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

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

       Read and process client data.

   "client_write"
	 my $chunk = $tx->client_write;

       Write client data.

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

       Connection can be kept alive.

   "server_leftovers"
	 my $leftovers = $tx->server_leftovers;

       Leftovers from the server request, used for pipelining.

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

       Read and process server data.

   "server_write"
	 my $chunk = $tx->server_write;

       Write server data.

SEE ALSO
       Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.

perl v5.14.1			  2011-09-01	    Mojo::Transaction::HTTP(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net