NAME
OpenFrame::Server::Direct - Provide direct access to OpenFrame
SYNOPSIS
my $url = "http://localhost/myapp/?param=5";
my $direct = OpenFrame::Server::Direct->new($config);
my $response = $direct->handle($url);
if ($response->getMessageCode == ofOK) {
print $response->getMessage() . "\n";
} else {
print "Some sort of error. Drat.\n";
}
DESCRIPTION
OpenFrame::Server::Direct
provides direct access to an OpenFrame application (without having to set up Apache). It takes a URL as input and returns the OpenFrame::AbstractResponse
object resulting from processing that URL. It does not cope with cookies at the moment but is very useful for testing.
AUTHOR
Leon Brocard <leon@fotango.com>