-
-
30 Nov 2010 16:12:16 UTC
- Distribution: Plack-App-WrapApacheReq
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (145 / 0 / 0)
- Kwalitee
- License: unknown
- Activity
24 month- Tools
- Download (4.63KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Dependencies
- APR::Pool
- APR::Table
- Plack
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Take me over?
The maintainer of this distribution is looking for someone to take over! If you're interested then please contact them via email.NAME
Plack::App::WrapApacheReq - Wrapping mod_perl2 applications in Plack
SYNOPSIS
use Plack::App::WrapApacheReq; my $app = Plack::App::WrapApacheReq->new( handler => "My::ResponseHandler" dir_config => { ... } )->to_app;
DESCRIPTION
Plack::App::WrapApacheReq transforms a mod_perl2 application into a PSGI application
NOTICE
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.
CONFIGURATION
APACHE METHODS
The following methods from Apache2::RequestRec and mixins are supported:
- headers_in =item headers_out =item subprecess_env =item dir_config
- method =item unparsed_uri =item uri =item user =item hostname
- content_type =item content_encoding =item status =item log_reason (implemented as a no-op)
- read =item print =item write
PLACK METHODS
A few methods have been added to the interface to enable interaction with Plack:
- plack_request
-
Returns the underling Plack::Request object
- plack_response
-
Returns the underlying Plack::Response object. During the request phase this is incomplete.
- finalize
-
Fills information into the response object and finalizes it.
AUTHOR
Peter Makholm, peter@makholm.net
Module Install Instructions
To install Plack::App::WrapApacheReq, copy and paste the appropriate command in to your terminal.
cpanm Plack::App::WrapApacheReq
perl -MCPAN -e shell install Plack::App::WrapApacheReq
For more information on module installation, please visit the detailed CPAN module installation guide.