
Plack::App::WrapApacheReq - Wrapping mod_perl2 applications in Plack

use Plack::App::WrapApacheReq;
my $app = Plack::App::WrapApacheReq->new(
handler => "My::ResponseHandler"
dir_config => { ... }
)->to_app;

Plack::App::WrapApacheReq transforms a mod_perl2 application into a PSGI application

This is Proof of Concept code originating in the mocking code developed to test an internal very non-trivial mod_perl2 application. Features have been added on a need to have basis.

Hash used to resolve $req->dir_config() requests

The following methods from Apache2::RequestRec and mixins are supported:

A few methods have been added to the interface to enable interaction with Plack:
Returns the underling Plack::Request object
Returns the underlying Plack::Response object. During the request phase this is incomplete.
Fills information into the response object and finalizes it.

Peter Makholm, peter@makholm.net