line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tatsumaki::Request; |
2
|
4
|
|
|
4
|
|
21
|
use Encode; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
421
|
|
3
|
4
|
|
|
4
|
|
23
|
use parent qw(Plack::Request); |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
34
|
|
4
|
|
|
|
|
|
|
|
5
|
4
|
|
|
4
|
|
250872
|
use Tatsumaki::Response; |
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
661
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub _build_parameters { |
8
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
|
|
0
|
my $params = $self->SUPER::_build_parameters(); |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
0
|
my $decoded_params = {}; |
13
|
0
|
|
|
|
|
0
|
while (my($k, $v) = each %$params) { |
14
|
0
|
0
|
|
|
|
0
|
$decoded_params->{decode_utf8($k)} = ref $v eq 'ARRAY' |
15
|
|
|
|
|
|
|
? [ map decode_utf8($_), @$v ] : decode_utf8($v); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
0
|
return $decoded_params; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub new_response { |
22
|
2
|
|
|
2
|
1
|
7
|
my $self = shift; |
23
|
2
|
|
|
|
|
38
|
Tatsumaki::Response->new(@_); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|