line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Plack::Middleware::XFramework; |
2
|
7
|
|
|
7
|
|
71944
|
use strict; |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
174
|
|
3
|
7
|
|
|
7
|
|
26
|
use warnings; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
190
|
|
4
|
7
|
|
|
7
|
|
87
|
use parent qw/Plack::Middleware/; |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
39
|
|
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
416
|
use Plack::Util; |
|
7
|
|
|
|
|
10
|
|
|
7
|
|
|
|
|
191
|
|
7
|
7
|
|
|
7
|
|
33
|
use Plack::Util::Accessor qw( framework ); |
|
7
|
|
|
|
|
11
|
|
|
7
|
|
|
|
|
33
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub call { |
10
|
11
|
|
|
11
|
1
|
21
|
my $self = shift; |
11
|
|
|
|
|
|
|
|
12
|
11
|
|
|
|
|
57
|
my $res = $self->app->( @_ ); |
13
|
|
|
|
|
|
|
$self->response_cb($res, sub { |
14
|
11
|
|
|
11
|
|
16
|
my $res = shift; |
15
|
11
|
50
|
|
|
|
24
|
if ($self->framework) { |
16
|
11
|
|
|
|
|
31
|
Plack::Util::header_set $res->[1], 'X-Framework' => $self->framework; |
17
|
|
|
|
|
|
|
} |
18
|
11
|
|
|
|
|
118
|
}); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__END__ |