package Plack::Handler::Starman; use strict; use Starman::Server; sub new { my $class = shift; bless { @_ }, $class; } sub run { my($self, $app) = @_; if ($ENV{SERVER_STARTER_PORT}) { require Net::Server::SS::PreFork; @Starman::Server::ISA = qw(Net::Server::SS::PreFork); # Yikes. } Starman::Server->new->run($app, {%$self}); } 1; __END__ =head1 NAME Plack::Handler::Starman - Plack adapter for Starman =head1 SYNOPSIS plackup -s Starman =head1 DESCRIPTION This handler exists for the C compatibility. Essentially, C is equivalent to C, because the C executable delay loads the application by default. See L for more details. =head1 AUTHOR Tatsuhiko Miyagawa =head1 SEE ALSO L =cut