| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Catmandu::AlephX::UserAgent; |
|
2
|
2
|
|
|
2
|
|
80779
|
use Catmandu::Sane; |
|
|
2
|
|
|
|
|
154938
|
|
|
|
2
|
|
|
|
|
16
|
|
|
3
|
2
|
|
|
2
|
|
492
|
use Catmandu::Util qw(:check); |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
447
|
|
|
4
|
2
|
|
|
2
|
|
14
|
use Moo::Role; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
21
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "1.071"; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has url => ( |
|
9
|
|
|
|
|
|
|
is => 'ro', |
|
10
|
|
|
|
|
|
|
isa => sub { $_[0] =~ /^https?:\/\//o or die("url must be a valid web url\n"); }, |
|
11
|
|
|
|
|
|
|
required => 1 |
|
12
|
|
|
|
|
|
|
); |
|
13
|
|
|
|
|
|
|
has default_args => ( |
|
14
|
|
|
|
|
|
|
is => 'ro', |
|
15
|
|
|
|
|
|
|
isa => sub { check_hash_ref($_[0]); }, |
|
16
|
|
|
|
|
|
|
lazy => 1, |
|
17
|
|
|
|
|
|
|
default => sub { +{}; } |
|
18
|
|
|
|
|
|
|
); |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
#usage: request($params,$methods) |
|
21
|
|
|
|
|
|
|
requires qw(request); |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |