KOBAYASHI, Hiroaki

NAME

MOP4Import::PSGIEnv - define Env class for PSGI, with extensions.

SYNOPSIS

  use MOP4Import::PSGIEnv qw/mypsgi.extension/;
  
  return sub {
    (my Env $env) = @_;
    return [200, [], ["PATH_INFO is ", $env->{PATH_INFO}
                    , extension => $env->{'mypsgi.extension'}
                  ]];
  }

DESCRIPTION

MOP4Import::PSGIEnv is yet another protocol implementation of MOP4Import family.

This module simply defines Env class. Standard PSGI $env is already defined.