NAME
Jifty::Server - Standalone web server for Jifty applications
SYNOPSIS
use Jifty::Server;
my $server = Jifty::Server->new();
$server->run();
DESCRIPTION
Jifty::Server
is a subclass of HTTP::Server::Simple::Mason which creates a handy standalone web server for a lightweight Jifty application.
METHODS
new
Creates a new Jifty::Server
object.
mason_config
The Jifty standalone server gets its Mason configuration from the same place that any other Jifty handler does: "mason_config" in Jifty::Handler.
handle_error
Overrides HTTP::Server::Simple::Mason's handle_error method to return an error to the browser, and log an error using Log::Log4perl
setup_jifty
Sets up the Jifty singleton. This is called automatically by "new".
handle_request
Overrives HTML::Server::Simple::Mason's handle_request method to make use of Module::Refresh to refresh any relevant modules, as well as to set up the $JiftyWeb
global before handling the actual request.
print_banner
Overrives HTML::Server::Simple::Mason's print_banner to use the logging framework to record the server's startup
recorder_prefix
Returns the filename prefix used if HTTP::Server::Simple::Recorder support is being used.
recording_on
Sets this server to use HTTP::Server::Simple::Recorder.
(See also the JIFTY_RECORD
environment variable and the -r
switch to standalone_server
.)