line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Plack::Handler::Starwoman; |
2
|
|
|
|
|
|
|
$Plack::Handler::Starwoman::VERSION = '0.001'; |
3
|
49
|
|
|
49
|
|
16875010
|
use strict; |
|
49
|
|
|
|
|
570
|
|
|
49
|
|
|
|
|
4318
|
|
4
|
49
|
|
|
49
|
|
26790
|
use Starwoman::Server; |
|
49
|
|
|
|
|
172
|
|
|
49
|
|
|
|
|
9966
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
49
|
|
|
49
|
0
|
2598
|
my $class = shift; |
8
|
49
|
|
|
|
|
399
|
bless { @_ }, $class; |
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub run { |
12
|
49
|
|
|
49
|
0
|
2187
|
my($self, $app) = @_; |
13
|
|
|
|
|
|
|
|
14
|
49
|
50
|
|
|
|
276
|
if ($ENV{SERVER_STARTER_PORT}) { |
15
|
0
|
|
|
|
|
0
|
require Net::Server::SS::PreFork; |
16
|
0
|
|
|
|
|
0
|
@Starwoman::Server::ISA = qw(Net::Server::SS::PreFork); # Yikes. |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
49
|
|
|
|
|
98
|
my %nsa; |
20
|
49
|
|
|
|
|
491
|
while (my($key, $value) = each %$self) { |
21
|
98
|
50
|
|
|
|
539
|
$key =~ s/^net_server_// or next; |
22
|
0
|
|
|
|
|
0
|
$nsa{$key} = $value; |
23
|
|
|
|
|
|
|
} |
24
|
49
|
50
|
|
|
|
198
|
$self->{net_server_args} = \%nsa if %nsa; |
25
|
|
|
|
|
|
|
|
26
|
49
|
|
|
|
|
485
|
Starwoman::Server->new->run($app, {%$self}); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |