The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

HTTP::Engine - Web Server Gateway Interface and HTTP Server Engine Drivers (Yet Another Catalyst::Engine)

SYNOPSIS

  use HTTP::Engine;
  my $engine = HTTP::Engine->new(
      interface => {
          module => 'ServerSimple',
          args   => {
              host => 'localhost',
              port =>  1978,
          },
          request_handler => 'handle_request',# or CODE ref
      },
  };
  $engine->run;

  sub handle_request {
      my $c = shift;
      $c->res->body( Dumper($e->req) );
  }

CONCEPT RELEASE

Version 0.0.x is a concept release, the internal interface is still fluid. It is mostly based on the code of Catalyst::Engine.

DESCRIPTION

HTTP::Engine is a bare-bones, extensible HTTP engine. It is not a socket binding server. The purpose of this module is to be an adaptor between various HTTP-based logic layers and the actual implementation of an HTTP server, such as, mod_perl and FastCGI

MIDDLEWARES

For all non-core middlewares (consult #codrepos first), use the HTTPEx:: namespace. For example, if you have a plugin module named "HTTPEx::Middleware::Foo", you could load it as

BRANCHES

Moose branches http://svn.coderepos.org/share/lang/perl/HTTP-Engine/branches/moose/

AUTHOR

Kazuhiro Osawa <ko@yappo.ne.jp>

lestrrat

tokuhirom

nyarla

marcus

SEE ALSO

wiki page http://coderepos.org/share/wiki/HTTP%3A%3AEngine

Class::Component

REPOSITORY

  svn co http://svn.coderepos.org/share/lang/perl/HTTP-Engine/trunk HTTP-Engine

HTTP::Engine'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.