line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package AnyEvent::Stomper::Frame; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
49
|
use 5.008000; |
|
4
|
|
|
|
|
10
|
|
4
|
4
|
|
|
4
|
|
16
|
use strict; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
75
|
|
5
|
4
|
|
|
4
|
|
15
|
use warnings; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
198
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.36'; |
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
|
1793
|
use Encode qw( decode ); |
|
4
|
|
|
|
|
32400
|
|
|
4
|
|
|
|
|
385
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
1
|
|
|
1
|
1
|
1573
|
my $class = shift; |
14
|
1
|
|
|
|
|
2
|
my $command = shift; |
15
|
1
|
|
|
|
|
2
|
my $headers = shift; |
16
|
1
|
|
|
|
|
1
|
my $body = shift; |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
|
|
2
|
my $self = bless {}, $class; |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
|
|
5
|
$self->{command} = $command; |
21
|
1
|
|
|
|
|
3
|
$self->{headers} = $headers; |
22
|
1
|
|
|
|
|
2
|
$self->{body} = $body; |
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
|
|
2
|
return $self; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# Generate getters |
28
|
|
|
|
|
|
|
{ |
29
|
4
|
|
|
4
|
|
24
|
no strict qw( refs ); |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
271
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
foreach my $name ( qw( command headers body ) ) |
32
|
|
|
|
|
|
|
{ |
33
|
|
|
|
|
|
|
*{$name} = sub { |
34
|
0
|
|
|
0
|
|
|
my $self = shift; |
35
|
0
|
|
|
|
|
|
return $self->{$name}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
__END__ |