| 1 | package Plack::Handler::Gepok; | ||||||||||||||||||||||
| 2 | |||||||||||||||||||||||
| 3 | 1 | ▶ | use 5.010; | ||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||
| 5 | 1 | ▶ | use warnings; | ||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||
| 6 | |||||||||||||||||||||||
| 7 | 1 | ▶ | use Gepok; | ||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||
| 8 | |||||||||||||||||||||||
| 9 | 1 | our $VERSION = '0.292'; # VERSION | |||||||||||||||||||||
| 10 | |||||||||||||||||||||||
| 11 | 0 | ▶ | sub new { | ||||||||||||||||||||
|
Subroutine
new: not called CC=5 SCAR=34.0
Pod
undocumented
| |||||||||||||||||||||||
| 12 | 0 | my $class = shift; | |||||||||||||||||||||
| 13 | 0 | my $self = bless { @_ }, $class; | |||||||||||||||||||||
| 14 | |||||||||||||||||||||||
| 15 | 0 | ▶ | $self->{daemonize} //= 0; | ||||||||||||||||||||
|
Condition0%0/2
$self->{"daemonize"} //= 0
MC/DC0%0/1
$self->{"daemonize"} //= 0
$self->{"daemonize"}
Truth table0%0/2
A
A= $self->{"daemonize"}
| |||||||||||||||||||||||
| 16 | |||||||||||||||||||||||
| 17 | # translate different option names | ||||||||||||||||||||||
| 18 | 0 | ▶ | if ($self->{port}) { | ||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||
| 19 | 0 | ▶ | $self->{http_ports} //= [($self->{host} // "") . ":" . $self->{port}]; | ||||||||||||||||||||
|
Condition0%0/4
$self->{"http_ports"} //= [($self->{"host"} // "") . ':' . $self->{"port"}]
$self->{"host"} // ""
MC/DC0%0/1
$self->{"http_ports"} //= [($self->{"host"} // "") . ':' . $self->{"port"}]
$self->{"http_ports"}
MC/DC0%0/1
$self->{"host"} // ""
$self->{"host"}
Truth table0%0/2
A
A= $self->{"http_ports"}
Truth table0%0/2
A
A= $self->{"host"}
| |||||||||||||||||||||||
| 20 | 0 | delete $self->{port}; | |||||||||||||||||||||
| 21 | 0 | delete $self->{host}; | |||||||||||||||||||||
| 22 | } | ||||||||||||||||||||||
| 23 | 0 | $self; | |||||||||||||||||||||
| 24 | } | ||||||||||||||||||||||
| 25 | |||||||||||||||||||||||
| 26 | 0 | ▶ | sub run { | ||||||||||||||||||||
|
Subroutine
run: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||
| 27 | 0 | my($self, $app) = @_; | |||||||||||||||||||||
| 28 | 0 | Gepok->new(%$self)->run($app); | |||||||||||||||||||||
| 29 | } | ||||||||||||||||||||||
| 30 | |||||||||||||||||||||||
| 31 | 1 | 1; | |||||||||||||||||||||
| 32 | # ABSTRACT: Plack adapter for Gepok | ||||||||||||||||||||||
| 33 | |||||||||||||||||||||||
| 34 | __END__ | ||||||||||||||||||||||