Kazuhiro Osawa > HTTP-Engine > HTTP::Engine::Interface::POE

Download:
HTTP-Engine-0.03005.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source  

NAME ^

HTTP::Engine::Interface::POE - POE interface for HTTP::Engine.

SYNOPSIS ^

    use POE;

    HTTP::Engine->new(
        interface => {
            module => 'POE',
            args   => {
                host => '127.0.0.1',
                port => 1984,
            },
            request_handler => sub {
                HTTP::Engine::Response->new(
                    status => 200,
                    body   => 'foo'
                )
            }
        },
    )->run;

    POE::Kernel->run();

DESCRIPTION ^

This is POE interface for HTTP::Engine.

ATTRIBUTES ^

host

The bind address of TCP server.

port

The port number of TCP server.

SEE ALSO ^

HTTP::Engine

syntax highlighting: