NAME

Response Base - Base object for view plugins

SYNOPSIS

use myResponse;
my $response = myResponse->new($hector);

package myResponse;
use parent ("PSGI::Hector::Response::Base");

DESCRIPTION

This object should not be used directly, a new class should be created which inherits this one instead.

All response plugins should override at least the display() method and they all a sub class of HTTP::Response.

The module PSGI::Hector::Response will load the specified response plugin on script startup.

METHODS

setCacheable($seconds)

$response->setCacheable($seconds)

Sets the page to be cached for the specified amount of seconds.

Provided classes

In this package there are some responses already available for use:

Raw

See PSGI::Hector::Response::Raw for details.

TemplateToolkit

See PSGI::Hector::Response::TemplateToolkit for details.

Notes

Author

MacGyveR <dumb@cpan.org>

Development questions, bug reports, and patches are welcome to the above address.

See Also

Copyright

Copyright (c) 2017 MacGyveR. All rights reserved.

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