| 1 | package HTTP::AnyUA::Backend; | ||||||||||
| 2 | # ABSTRACT: A base class for HTTP::AnyUA backends | ||||||||||
| 3 | |||||||||||
| 4 | |||||||||||
| 5 | 14 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 14 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 14 | our $VERSION = '0.904'; # VERSION | |||||||||
| 9 | |||||||||||
| 10 | |||||||||||
| 11 | |||||||||||
| 12 | 8 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||
| 13 | 8 | my $class = shift; | |||||||||
| 14 | 8 | ▶ | my $ua = shift or die 'User agent is required'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 8 | bless {ua => $ua}, $class; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | sub request { | ||||||||
|
Subroutine
request: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 20 | 0 | die 'Not yet implemented'; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | |||||||||||
| 24 | 2 | ▶ | sub ua { shift->{ua} } | ||||||||
|
Subroutine
ua: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | 2 | ▶ | sub response_is_future { 0 } | ||||||||
|
Subroutine
response_is_future: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 28 | |||||||||||
| 29 | 14 | 1; | |||||||||
| 30 | |||||||||||
| 31 | __END__ | ||||||||||