line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Plack::Middleware; |
2
|
92
|
|
|
92
|
|
32474
|
use strict; |
|
92
|
|
|
|
|
173
|
|
|
92
|
|
|
|
|
2264
|
|
3
|
92
|
|
|
92
|
|
337
|
use warnings; |
|
92
|
|
|
|
|
180
|
|
|
92
|
|
|
|
|
1778
|
|
4
|
92
|
|
|
92
|
|
376
|
use Carp (); |
|
92
|
|
|
|
|
125
|
|
|
92
|
|
|
|
|
1376
|
|
5
|
92
|
|
|
92
|
|
329
|
use parent qw(Plack::Component); |
|
92
|
|
|
|
|
127
|
|
|
92
|
|
|
|
|
485
|
|
6
|
92
|
|
|
92
|
|
3685
|
use Plack::Util; |
|
92
|
|
|
|
|
158
|
|
|
92
|
|
|
|
|
2005
|
|
7
|
92
|
|
|
92
|
|
31731
|
use Plack::Util::Accessor qw( app ); |
|
92
|
|
|
|
|
229
|
|
|
92
|
|
|
|
|
477
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub wrap { |
10
|
202
|
|
|
202
|
0
|
12202
|
my($self, $app, @args) = @_; |
11
|
202
|
100
|
|
|
|
1384
|
if (ref $self) { |
12
|
3
|
|
|
|
|
63
|
$self->{app} = $app; |
13
|
|
|
|
|
|
|
} else { |
14
|
199
|
|
|
|
|
4114
|
$self = $self->new({ app => $app, @args }); |
15
|
|
|
|
|
|
|
} |
16
|
202
|
|
|
|
|
2199
|
return $self->to_app; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |