line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::AnyUA::Backend; |
2
|
|
|
|
|
|
|
# ABSTRACT: A base class for HTTP::AnyUA backends |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
18882
|
use warnings; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
190
|
|
6
|
6
|
|
|
6
|
|
31
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
804
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.902'; # VERSION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
7
|
|
|
7
|
1
|
17
|
my $class = shift; |
14
|
7
|
50
|
|
|
|
22
|
my $ua = shift or die 'User agent is required'; |
15
|
7
|
|
|
|
|
42
|
bless {ua => $ua}, $class; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub request { |
20
|
0
|
|
|
0
|
1
|
0
|
die 'Not yet implemented'; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
1
|
9
|
sub ua { shift->{ua} } |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
18
|
|
|
18
|
1
|
68
|
sub response_is_future { 0 } |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |