Shuvgey
view release on metacpan or search on metacpan
lib/Shuvgey/Server.pm view on Meta::CPAN
open $input, '<', \$data if defined $data;
my $env = {
'psgi.version' => [ 1, 1 ],
'psgi.input' => $input,
'psgi.errors' => *STDERR,
'psgi.multithread' => FALSE,
'psgi.multiprocess' => FALSE,
'psgi.run_once' => FALSE,
'psgi.nonblocking' => TRUE,
'psgi.streaming' => FALSE,
'SCRIPT_NAME' => '',
'SERVER_NAME' => $host eq '0.0.0.0' ? $hostname : $host,
'SERVER_PORT' => $port,
'SERVER_PROTOCOL' => "HTTP/2",
# This not in PSGI spec. Why not?
'REMOTE_HOST' => $peer_host,
'REMOTE_ADDR' => $peer_host,
'REMOTE_PORT' => $peer_port,
( run in 0.234 second using v1.01-cache-2.11-cpan-4d50c553e7e )