MOP4Import::PSGIEnv - define Env class for PSGI, with extensions.
use MOP4Import::PSGIEnv qw/mypsgi.extension/; return sub { (my Env $env) = @_; return [200, [], ["PATH_INFO is ", $env->{PATH_INFO} , extension => $env->{'mypsgi.extension'} ]]; }
MOP4Import::PSGIEnv is yet another protocol implementation of MOP4Import family.
This module simply defines Env class. Standard PSGI $env is already defined.
Env
To install MOP4Import::Declare, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MOP4Import::Declare
CPAN shell
perl -MCPAN -e shell install MOP4Import::Declare
For more information on module installation, please visit the detailed CPAN module installation guide.