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() method.
new()
start()
start() is a constructor of Haineko::HTTPD, is called from psgi file.
req
req() method is a shortcut to Haineko::HTTPD::Request.
req()
res
res() method is a shortcut to Haineko::HTTPD::Response.
res()
rdr( Code URL ])
rdr() method is for redirecting to the specified URL.
rdr()
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.
err()
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
r() method is a dispatcher to each controller, is called from Haineko-start().>
r()
Haineko-
Haineko::HTTPD::Request - Child class of Plack::Request
Haineko::HTTPD::Response - Child class of Plack::Response
Haineko::HTTPD::Router - Child class of Router::Simple
https://github.com/azumakuniyuki/Haineko
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.
To install Haineko, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Haineko
CPAN shell
perl -MCPAN -e shell install Haineko
For more information on module installation, please visit the detailed CPAN module installation guide.