++ed by:

1 non-PAUSE user(s).

Philip Gwyn

NAME

POEx::HTTP::Server::Request - Object encapsulating an HTTP request

SYNOPSIS

    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;
    }

DESCRIPTION

A POEx::HTTP::Server::Request object is supplied as ARG0 to each POEx::HTTP::Server:: request handler.

It is a sub-class of HTTP::Request.

METHODS

connection

Returns an POEx::HTTP::Server::Connection object.

SEE ALSO

HTTP::Request, POEx::HTTP::Server, POEx::HTTP::Server::Response, POEx::HTTP::Server::Connection.

AUTHOR

Philip Gwyn, <gwyn -at- cpan.org>

COPYRIGHT AND LICENSE

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.




Hosting generously
sponsored by Bytemark