| Plack documentation | Contained in the Plack distribution. |
Plack::Handler::HTTP::Server::PSGI - adapter for HTTP::Server::PSGI
% plackup -s HTTP::Server::PSGI \
--host 127.0.0.1 --port 9091 --timeout 120
Since Plack 0.99_22 this handler doesn't support preforking
configuration i.e. --max-workers. Use Starman or Starlet if
you need preforking PSGI web server.
Host the server binds to. Defaults to all interfaces.
Port number the server listens on. Defaults to 8080.
Number of seconds a request times out. Defaults to 300.
Number of requests per worker to process. Defaults to 100.
Kazuho Oku
Tatsuhiko Miyagawa
| Plack documentation | Contained in the Plack distribution. |
package Plack::Handler::HTTP::Server::PSGI; use strict; # for temporary backward compat use parent qw( HTTP::Server::PSGI ); sub new { my($class, %args) = @_; bless { %args }, $class; } sub run { my($self, $app) = @_; $self->_server->run($app); } sub _server { my $self = shift; HTTP::Server::PSGI->new(%$self); } 1; __END__