| 1 | package Tatsumaki::Request; | ||||||||||
| 2 | 4 | ▶ | use Encode; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 4 | ▶ | use parent qw(Plack::Request); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 4 | ▶ | use Tatsumaki::Response; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 0 | ▶ | sub _build_parameters { | ||||||||
|
Subroutine
_build_parameters: not called CC=3 SCAR=24.8
| |||||||||||
| 8 | 0 | my $self = shift; | |||||||||
| 9 | |||||||||||
| 10 | 0 | my $params = $self->SUPER::_build_parameters(); | |||||||||
| 11 | |||||||||||
| 12 | 0 | my $decoded_params = {}; | |||||||||
| 13 | 0 | ▶ | while (my($k, $v) = each %$params) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 0 | ▶ | $decoded_params->{decode_utf8($k)} = ref $v eq 'ARRAY' | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | ? [ map decode_utf8($_), @$v ] : decode_utf8($v); | ||||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 0 | return $decoded_params; | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 2 | ▶ | sub new_response { | ||||||||
|
Subroutine
new_response: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 22 | 2 | my $self = shift; | |||||||||
| 23 | 2 | Tatsumaki::Response->new(@_); | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 4 | 1; | |||||||||
| 27 | |||||||||||