| 1 | package WWW::AUR::UserAgent; | ||||||||||
| 2 | |||||||||||
| 3 | 9 | ▶ | use warnings 'FATAL' => 'all'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 9 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 9 | ▶ | use LWP::UserAgent qw(); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 9 | ▶ | use WWW::AUR qw(); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 9 | our @ISA = qw(LWP::UserAgent); | |||||||||
| 10 | |||||||||||
| 11 | sub new | ||||||||||
| 12 | { | ||||||||||
| 13 | 10 | ▶ | my $class = shift; | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 14 | |||||||||||
| 15 | 10 | $class->SUPER::new( 'agent' => "WWW::AUR/v$WWW::AUR::VERSION", @_ ); | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | #---CLASS METHOD--- | ||||||||||
| 19 | sub InitTLS | ||||||||||
| 20 | { | ||||||||||
| 21 | 9 | ▶ | eval { require LWP::Protocol::https; 1 } or | ||||||||
|
Subroutine
InitTLS: called CC=2 SCAR=7.1
Pod
undocumented
Branch: 1 branch
| |||||||||||
| 22 | die "failed to load LWP::Protocol::https, error:\n$@\n" | ||||||||||
| 23 | . "(ensure that LWP::Protocol::https is installed)\n" | ||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 9 | 1; | |||||||||