Plack-App-CLI
view release on metacpan or search on metacpan
lib/Plack/App/CLI.pm view on Meta::CPAN
SERVER_PROTOCOL => 'HTTP/1.0',
SERVER_PORT => 0,
SERVER_NAME => 'localhost',
# PSGI
'psgi.version' => [1,1],
'psgi.errors' => $error,
'psgi.multithread' => Plack::Util::FALSE,
'psgi.multiprocess' => Plack::Util::TRUE,
'psgi.run_once' => Plack::Util::TRUE,
'psgi.streaming' => Plack::Util::FALSE,
'psgi.nonblocking' => Plack::Util::FALSE,
%ENV
};
sub run {
my($self, $app) = @_;
if ( ref $app ne "CODE" ) {
$app = Plack::Util::load_psgi($app);
( run in 0.576 second using v1.01-cache-2.11-cpan-4d50c553e7e )