line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::Headers::ActionPack::LinkList; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
7
|
|
|
7
|
|
8870
|
$HTTP::Headers::ActionPack::LinkList::AUTHORITY = 'cpan:STEVAN'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
{ |
6
|
|
|
|
|
|
|
$HTTP::Headers::ActionPack::LinkList::VERSION = '0.09'; |
7
|
|
|
|
|
|
|
} |
8
|
|
|
|
|
|
|
# ABSTRACT: A List of Link objects |
9
|
|
|
|
|
|
|
|
10
|
7
|
|
|
7
|
|
53
|
use strict; |
|
7
|
|
|
|
|
10
|
|
|
7
|
|
|
|
|
223
|
|
11
|
7
|
|
|
7
|
|
32
|
use warnings; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
194
|
|
12
|
|
|
|
|
|
|
|
13
|
7
|
|
|
7
|
|
2200
|
use HTTP::Headers::ActionPack::LinkHeader; |
|
7
|
|
|
|
|
18
|
|
|
7
|
|
|
|
|
242
|
|
14
|
|
|
|
|
|
|
|
15
|
7
|
|
|
7
|
|
44
|
use parent 'HTTP::Headers::ActionPack::Core::BaseHeaderList'; |
|
7
|
|
|
|
|
21
|
|
|
7
|
|
|
|
|
43
|
|
16
|
|
|
|
|
|
|
|
17
|
12
|
|
|
12
|
1
|
23
|
sub BUILDARGS { shift; +{ items => [ @_ ] } } |
|
12
|
|
|
|
|
151
|
|
18
|
|
|
|
|
|
|
|
19
|
30
|
|
|
30
|
0
|
638
|
sub items { (shift)->{'items'} } |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub add { |
22
|
11
|
|
|
11
|
1
|
17
|
my ($self, $link) = @_; |
23
|
11
|
|
|
|
|
14
|
push @{ $self->items } => $link; |
|
11
|
|
|
|
|
25
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub add_header_value { |
27
|
11
|
|
|
11
|
1
|
20
|
my ($self, $value) = @_; |
28
|
11
|
|
|
|
|
81
|
$self->add( HTTP::Headers::ActionPack::LinkHeader->new( @$value ) ); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
19
|
|
|
19
|
1
|
24
|
sub iterable { @{ (shift)->items } } |
|
19
|
|
|
|
|
49
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |