Kazuhiro Osawa > HTTPEx-Declare > HTTPEx::Declare

Download:
HTTPEx-Declare-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

HTTPEx::Declare - Declarative HTTP::Engine

SYNOPSIS ^

  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';

DESCRIPTION ^

HTTPEx::Declare is DSL to use HTTP::Engine easily.

AUTHOR ^

Kazuhiro Osawa <ko@yappo.ne.jp>

Tokuhiro Matsuno

SEE ALSO ^

HTTP::Engine, HTTP::Engine::Compat

REPOSITORY ^

  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.

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: