line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Plack::Middleware::Debug::Response; |
2
|
2
|
|
|
2
|
|
1080
|
use 5.008; |
|
2
|
|
|
|
|
10
|
|
3
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
43
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
59
|
|
5
|
2
|
|
|
2
|
|
19
|
use parent qw(Plack::Middleware::Debug::Base); |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
11
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.17'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub run { |
9
|
3
|
|
|
3
|
1
|
11
|
my($self, $env, $panel) = @_; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
return sub { |
12
|
3
|
|
|
3
|
|
8
|
my $res = shift; |
13
|
|
|
|
|
|
|
|
14
|
3
|
|
|
|
|
9
|
my @headers; |
15
|
3
|
|
|
|
|
70
|
Plack::Util::header_iter($res->[1], sub { push @headers, @_ }); |
|
3
|
|
|
|
|
83
|
|
16
|
|
|
|
|
|
|
|
17
|
3
|
|
|
|
|
65
|
$panel->content( |
18
|
|
|
|
|
|
|
$self->render_list_pairs( |
19
|
|
|
|
|
|
|
[ 'Status code' => $res->[0], @headers ], |
20
|
|
|
|
|
|
|
), |
21
|
|
|
|
|
|
|
); |
22
|
3
|
|
|
|
|
16
|
}; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
__END__ |