| 1 | package WWW::Postini::UserAgent; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use HTTP::Cookies; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use LWP::UserAgent; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use vars qw( @ISA $VERSION ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | @ISA = qw( LWP::UserAgent ); | |
| 12 | 1 | $VERSION = '0.01'; | |
| 13 | |||
| 14 | 2 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 15 | |||
| 16 | 2 | my $class = shift; | |
| 17 | 2 | $class->SUPER::new(cookie_jar => new HTTP::Cookies, @_); | |
| 18 | |||
| 19 | } | ||
| 20 | |||
| 21 | 15 | ▶ | sub request { |
|
Subroutine
request: called CC=1 SCAR=0.0
Pod
documented
| |||
| 22 | |||
| 23 | 15 | my $self = shift; | |
| 24 | 15 | my $response = $self->SUPER::request(@_); | |
| 25 | 15 | $self->{'_last_response'} = $response; | |
| 26 | |||
| 27 | } | ||
| 28 | |||
| 29 | 11 | ▶ | sub post { |
|
Subroutine
post: called CC=1 SCAR=0.0
Pod
documented
| |||
| 30 | |||
| 31 | 11 | my $self = shift; | |
| 32 | 11 | my $response = $self->SUPER::post(@_); | |
| 33 | 11 | $self->{'_last_response'} = $response; | |
| 34 | |||
| 35 | } | ||
| 36 | |||
| 37 | 4 | ▶ | sub get { |
|
Subroutine
get: called CC=1 SCAR=0.0
Pod
documented
| |||
| 38 | |||
| 39 | 4 | my $self = shift; | |
| 40 | 4 | my $response = $self->SUPER::get(@_); | |
| 41 | 4 | $self->{'_last_response'} = $response; | |
| 42 | |||
| 43 | } | ||
| 44 | |||
| 45 | 0 | ▶ | sub head { |
|
Subroutine
head: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 46 | |||
| 47 | 0 | my $self = shift; | |
| 48 | 0 | my $response = $self->SUPER::head(@_); | |
| 49 | 0 | $self->{'_last_response'} = $response; | |
| 50 | |||
| 51 | } | ||
| 52 | |||
| 53 | 17 | ▶ | sub simple_request { |
|
Subroutine
simple_request: called CC=1 SCAR=0.0
Pod
documented
| |||
| 54 | |||
| 55 | 17 | my $self = shift; | |
| 56 | 17 | my $response = $self->SUPER::simple_request(@_); | |
| 57 | 17 | $self->{'_last_response'} = $response; | |
| 58 | |||
| 59 | } | ||
| 60 | |||
| 61 | 17 | ▶ | sub send_request { |
|
Subroutine
send_request: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 62 | |||
| 63 | 17 | my $self = shift; | |
| 64 | 17 | my $response = $self->SUPER::send_request(@_); | |
| 65 | 17 | $self->{'_last_response'} = $response; | |
| 66 | |||
| 67 | } | ||
| 68 | |||
| 69 | 0 | ▶ | sub last_response { shift->{'_last_response'}; } |
|
Subroutine
last_response: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 70 | |||
| 71 | 1 | 1; | |
| 72 | |||
| 73 | __END__ | ||