| 1 | package Plack::Handler::Twiggy; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | 1 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 5 | 1 | my $class = shift; | |||||||||
| 6 | 1 | bless {@_}, $class; | |||||||||
| 7 | } | ||||||||||
| 8 | |||||||||||
| 9 | 1 | ▶ | sub run { | ||||||||
|
Subroutine
run: called CC=3 SCAR=11.2
Pod
undocumented
| |||||||||||
| 10 | 1 | my ($self, $app) = @_; | |||||||||
| 11 | |||||||||||
| 12 | my $class = $ENV{SERVER_STARTER_PORT} ? | ||||||||||
| 13 | 1 | ▶ | 'Twiggy::Server::SS' : 'Twiggy::Server'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 1 | eval "require $class"; | |||||||||
| 15 | 1 | ▶ | die if $@; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | |||||||||||
| 17 | 1 | $class->new(%{$self})->run($app); | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | 1 | 1; | |||||||||
| 22 | |||||||||||
| 23 | __END__ | ||||||||||