Haineko::HTTPD - Something like web application framework
Haineko::HTTPD is something like web application framework for Haineko. It contain wrapper methods of Plack::Request and Plack::Response.
$ cat haineko.psgi use Haineko; Haineko->start;
new() is a constructor of Haineko::HTTPD, is called from
start() is a constructor of Haineko::HTTPD, is called from psgi file.
req() method is a shortcut to Haineko::HTTPD::Request.
res() method is a shortcut to Haineko::HTTPD::Response.
rdr() method is for redirecting to the specified URL.
HTTP status code for redirecting. If it is omitted, 302 will be used.
err() method is for making error response and returns Haineko::HTTPD::Response object.
HTTP status code for responding error. If it is omitted, 404 will be used.
Error message. If it is omitted, 'Not Found' will be used.
r() method is a dispatcher to each controller, is called from
azumakuniyuki <perl.org [at] azumakuniyuki.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.