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( %argvs )
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( Code URL ])
rdr() method is for redirecting to the specified URL.
HTTP status code for redirecting. If it is omitted, 302 will be used.
err( [ Code [, Message] ] )
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
Haineko::HTTPD::Request - Child class of Plack::Request
Haineko::HTTPD::Response - Child class of Plack::Response
Haineko::HTTPD::Router - Child class of Router::Simple
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.