Konstrukt::Handler 0.5 Beta 6 review
DownloadKonstrukt::Handler is a base class for handlers that control the processing of the requests. SYNOPSIS use Konstrukt::Ha
|
|
Konstrukt::Handler is a base class for handlers that control the processing of the requests.
SYNOPSIS
use Konstrukt::Handler;
#inherit new(), process() and emergency_exit()
use base 'Konstrukt::Handler';
#create handler sub. usually a bit more comprehensive. see existing handlers
sub handler {
my ($self) = @_;
print $self->process();
}
#optional: overwrite method emergency_exit to provide some more info.
sub emergency_exit {
my ($self) = @_;
#do something. e.g. print out error messages.
die;
}
Base class for the Konstrukt handlers.
You should inherit from this class when building your own handler.
You will find the handlers currently available in the Konstrukt::Handler directory.
Requirements:
Perl
Konstrukt::Handler 0.5 Beta 6 search tags