line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::Response::Maker; |
2
|
4
|
|
|
4
|
|
25
|
use strict; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
190
|
|
3
|
4
|
|
|
4
|
|
22
|
use warnings; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
130
|
|
4
|
4
|
|
|
4
|
|
107
|
use 5.008_001; |
|
4
|
|
|
|
|
14
|
|
|
4
|
|
|
|
|
162
|
|
5
|
4
|
|
|
4
|
|
3386
|
use Class::Load qw(load_class); |
|
4
|
|
|
|
|
181283
|
|
|
4
|
|
|
|
|
682
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our @DefaultHeaders = ( |
10
|
|
|
|
|
|
|
'Content-Type' => 'text/html; charset=utf-8' |
11
|
|
|
|
|
|
|
); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub import { |
14
|
1
|
|
|
1
|
|
3
|
my ($class, $impl, @args) = @_; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
|
|
3
|
$impl = "HTTP::Response::Maker::$impl"; |
17
|
1
|
|
|
|
|
4
|
load_class $impl; |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
|
|
50
|
@_ = ($impl, @args); |
20
|
1
|
|
|
|
|
22
|
goto $impl->can('import'); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |