POEx::HTTP::Server::Request - Object encapsulating an HTTP request
use POEx::HTTP::Server; POEx::HTTP::Server->spawn( handler => 'poe:my-alias/handler' ); # events of session my-alias: sub handler { my( $heap, $req, $resp ) = @_[HEAP,ARG0,ARG1]; my $c = $req->connection; warn "Request to ", $c->local_addr, ":", $c->local_port; warn "Request from ", $c->remote_addr, ":", $c->remote_port; }
A POEx::HTTP::Server::Request object is supplied as ARG0 to each POEx::HTTP::Server:: request handler.
POEx::HTTP::Server::Request
ARG0
POEx::HTTP::Server::
It is a sub-class of HTTP::Request.
Returns an POEx::HTTP::Server::Connection object.
HTTP::Request, POEx::HTTP::Server, POEx::HTTP::Server::Response, POEx::HTTP::Server::Connection.
Philip Gwyn, <gwyn -at- cpan.org>
Copyright (C) 2010 by Philip Gwyn
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install POEx::HTTP::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POEx::HTTP::Server
CPAN shell
perl -MCPAN -e shell install POEx::HTTP::Server
For more information on module installation, please visit the detailed CPAN module installation guide.