HTTPEx::Declare - Declarative HTTP::Engine
use HTTPEx::Declare; interface ServerSimple => { host => 'localhost', port => 1978, }; use Data::Dumper; run { my $req = shift; res( body => Dumper($req) ); };
for HTTP::Engine::Compat
use HTTPEx::Declare -Compat; interface ServerSimple => { host => 'localhost', port => 1978, }; use Data::Dumper; run { my $c = shift; $c->res->body( Dumper($c->req) ); };
middlewares preload middlewares 'DebugScreen', 'ModuleReload';
HTTPEx::Declare is DSL to use HTTP::Engine easily.
Kazuhiro Osawa <ko@yappo.ne.jp>
Tokuhiro Matsuno
HTTP::Engine, HTTP::Engine::Compat
svn co http://svn.coderepos.org/share/lang/perl/HTTPEx-Declare/trunk HTTPEx-Declare
HTTPEx::Declare's Subversion repository is hosted at http://coderepos.org/share/. patches and collaborators are welcome.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTTPEx::Declare, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTPEx::Declare
CPAN shell
perl -MCPAN -e shell install HTTPEx::Declare
For more information on module installation, please visit the detailed CPAN module installation guide.