The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RDF::Server::Protocol::HTTP - POE-based standalone HTTP server

SYNOPSIS

 package My::Server;

 use RDF::Server;
 with 'MooseX::SimpleConfig';
 with 'MooseX::Getopt';

 protocol 'HTTP';
 interface 'SomeInterface';
 semantic 'SomeSemantic';

DESCRIPTION

This protocol handler interfaces between the RDF::Server framework and a POE::Component::Server::HTTP server.

The MooseX::Daemonize role is included in this module. The start method is extended to start the POE::Kernal event loop in the daemonized process.

CONFIGURATION

address

This is the IP address on which the server should listen.

Default: 127.0.0.1 (localhost)

port

This is the port on which the server should listen.

Default: 8080

uri_base

This is the base URI at which the server should respond to requests. This is the location at which the content handler responds in the POE::Component::Server::HTTP object. See POE::Component::Server::HTTP for more information.

METHODS

handle ($request, $response)

Passes the request and response objects to the appropriate interface handler. Returns the appropriate code to the POE::Component::Server::HTTP server.

SEE ALSO

MooseX::Daemonize, POE::Component::Server::HTTP.

AUTHOR

James Smith, <jsmith@cpan.org>

LICENSE

Copyright (c) 2008 Texas A&M University.

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.