/usr/share/perl5/Plack/Handler/HTTP/Server/PSGI.pm is in libplack-perl 1.0042-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | 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__
=head1 NAME
Plack::Handler::HTTP::Server::PSGI - adapter for HTTP::Server::PSGI
=head1 SYNOPSIS
% plackup -s HTTP::Server::PSGI \
--host 127.0.0.1 --port 9091 --timeout 120
=head1 BACKWARD COMPATIBLITY
Since Plack 0.99_22 this handler doesn't support preforking
configuration i.e. C<--max-workers>. Use L<Starman> or L<Starlet> if
you need preforking PSGI web server.
=head1 CONFIGURATIONS
=over 4
=item host
Host the server binds to. Defaults to all interfaces.
=item port
Port number the server listens on. Defaults to 8080.
=item timeout
Number of seconds a request times out. Defaults to 300.
=item max-reqs-per-child
Number of requests per worker to process. Defaults to 100.
=back
=head1 AUTHOR
Kazuho Oku
Tatsuhiko Miyagawa
=head1 SEE ALSO
L<Plack> L<HTTP::Server::PSGI>
=cut
|