| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Net::OBEX::Packet::Request::Base; |
|
3
|
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
26390
|
use strict; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
61
|
|
|
5
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
50
|
|
|
6
|
2
|
|
|
2
|
|
8
|
use Carp; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
462
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '1.001001'; # VERSION |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
|
11
|
4
|
|
|
4
|
0
|
14
|
my $class = shift; |
|
12
|
4
|
50
|
|
|
|
11
|
croak "Must have even number of arguments to new()" |
|
13
|
|
|
|
|
|
|
if @_ & 1; |
|
14
|
4
|
|
|
|
|
5
|
my %args = @_; |
|
15
|
4
|
|
|
|
|
12
|
$args{ +lc } = delete $args{ $_ } for keys %args; |
|
16
|
|
|
|
|
|
|
|
|
17
|
4
|
50
|
|
|
|
16
|
$args{headers} = [] |
|
18
|
|
|
|
|
|
|
unless exists $args{headers}; |
|
19
|
|
|
|
|
|
|
|
|
20
|
4
|
|
|
|
|
26
|
return bless \%args, $class; |
|
21
|
|
|
|
|
|
|
} |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub headers { |
|
24
|
12
|
|
|
12
|
0
|
91
|
my $self = shift; |
|
25
|
12
|
50
|
|
|
|
42
|
if ( @_ ) { |
|
26
|
0
|
|
|
|
|
0
|
$self->{ headers } = shift; |
|
27
|
|
|
|
|
|
|
} |
|
28
|
12
|
|
|
|
|
6769
|
return $self->{ headers }; |
|
29
|
|
|
|
|
|
|
} |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub raw { |
|
32
|
12
|
|
|
12
|
0
|
23
|
my $self = shift; |
|
33
|
12
|
50
|
|
|
|
35
|
if ( @_ ) { |
|
34
|
12
|
|
|
|
|
40
|
$self->{ raw } = shift; |
|
35
|
|
|
|
|
|
|
} |
|
36
|
12
|
|
|
|
|
110
|
return $self->{ raw }; |
|
37
|
|
|
|
|
|
|
} |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |