NAME

OpenFrame::Server::HTTPSingle - Provide standalone HTTP access to OpenFrame

SYNOPSIS

use OpenFrame::Server::HTTPSingle;
my $h = OpenFrame::Server::HTTPSingle->new(port => 8000);
$h->handle();

DESCRIPTION

OpenFrame::Server::HTTPSingle provides a standalone webserver which gives web access to an OpenFrame application (without having to set up Apache). The port that the webserver listens on is set by the value of the port key in the configuration, although it defaults to port 8000.

NOTES

This module requires HTTP::Daemon to be installed, and supports HTTP 1.1 (including keepalives) but only spawns one server - so can only be tested by one client at a time. This is less scalable than OpenFrame::Server::HTTP but can be used for benchmarking and testing due to the fact that it does not fork.

AUTHOR

Leon Brocard <leon@fotango.com>