Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    POE::Component::Server::HTTP 0.09

    Download button

    No screenshots available
    Downloads: 359  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Arthur Bergman | More programs
    Perl Artistic License / FREE
    April 18th, 2007, 19:05 GMT [view history]
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    POE::Component::Server::HTTP description

    A foundation of a POE HTTP Daemon

    POE::Component::Server::HTTP is a foundation of a POE HTTP Daemon.

    SYNOPSIS

    use POE::Component::Server::HTTP;
    use HTTP::Status;
    my $aliases = POE::Component::Server::HTTP->new(
    Port => 8000,
    ContentHandler => {
    '/' => &handler1,
    '/dir/' => sub { ... },
    '/file' => sub { ... }
    },
    Headers => { Server => 'My Server' },
    );

    sub handler {
    my ($request, $response) = @_;
    $response->code(RC_OK);
    $response->content("Hi, you fetched ". $request->uri);
    return RC_OK;
    }

    POE::Kernel->call($aliases->{httpd}, "shutdown");
    # next line isn't really needed
    POE::Kernel->call($aliases->{tcp}, "shutdown");


    POE::Component::Server::HTTP (PoCo::HTTPD) is a framework for building custom HTTP servers based on POE. It is loosely modeled on the ideas of apache and the mod_perl/Apache module.

    It is built alot on work done by Gisle Aas on HTTP::* modules and the URI module which are subclassed.

    PoCo::HTTPD lets you register different handler, stacked by directory that will be run during the cause of the request.

    Product's homepage

    Requirements:

    · Perl

    What's New in This Release: [ read full changelog ]

    · Fixed for newer versions of POE where POE::Filter::HTTPD has changed representation from hashref to arrayref.

      


    TAGS:

    POE component | HTTP Daemon | Perl module | module | POE | component

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM