NAME
Haineko::HTTPD - Something like web application framework
DESCRIPTION
Haineko::HTTPD is something like web application framework for Haineko. It contain wrapper methods of Plack::Request and Plack::Response.
SYNOPSIS
$ cat haineko.psgi
use Haineko;
Haineko->start;
CLASS METHODS
new( %argvs )
new()
is a constructor of Haineko::HTTPD, is called from start()
method.
start
start()
is a constructor of Haineko::HTTPD, is called from psgi file.
INSTANCE METHODS
req
req()
method is a shortcut to Haineko::HTTPD::Request.
res
res()
method is a shortcut to Haineko::HTTPD::Response.
rdr( Code URL ])
rdr()
method is for redirecting to the specified URL.
Arguments
CODE HTTP status code
HTTP status code for redirecting. If it is omitted, 302 will be used.
URL URL to redirect
err( [ Code [, Message] ] )
err()
method is for making error response and returns Haineko::HTTPD::Response object.
Arguments
CODE HTTP status code
HTTP status code for responding error. If it is omitted, 404 will be used.
Message Error message
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().>
SEE ALSO
Haineko::HTTPD::Request - Child class of Plack::Request
Haineko::HTTPD::Response - Child class of Plack::Response
Haineko::HTTPD::Router - Child class of Router::Simple
REPOSITORY
https://github.com/azumakuniyuki/Haineko
AUTHOR
azumakuniyuki <perl.org [at] azumakuniyuki.org>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.