| HTTPEx-Declare documentation | view source | Contained in the HTTPEx-Declare distribution. |
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
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.
| HTTPEx-Declare documentation | view source | Contained in the HTTPEx-Declare distribution. |