line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OAuth::Lite2::Agent::Dump; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
3
|
use parent 'OAuth::Lite2::Agent'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
7
|
1
|
|
|
1
|
|
494
|
use Data::Dump qw(dump); |
|
1
|
|
|
|
|
3734
|
|
|
1
|
|
|
|
|
112
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
OAuth::Lite2::Client::Agent::Dump - Preset User Agent class for debug |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 SYNOPSIS |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my $client = OAuth::Lite2::Client::WebApp->new( |
16
|
|
|
|
|
|
|
..., # other params |
17
|
|
|
|
|
|
|
agent => OAuth::Lite2::Client::Agent::Dump->new, |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 DESCRIPTION |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
This is useful for debug. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 METHODS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head2 request ($req) |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Append to the behavior of parent class, this method dumps the request and response object. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub request { |
33
|
0
|
|
|
0
|
1
|
|
my ($self, $req) = @_; |
34
|
0
|
|
|
|
|
|
warn dump($req); |
35
|
0
|
|
|
|
|
|
my $res = $self->SUPER::request($req); |
36
|
0
|
|
|
|
|
|
warn dump($res); |
37
|
0
|
|
|
|
|
|
return $res; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 SEE ALSO |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
L, |
45
|
|
|
|
|
|
|
L |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 AUTHOR |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Lyo Kato, C |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
54
|
|
|
|
|
|
|
it under the same terms as Perl itself, either Perl version 5.8.8 or, |
55
|
|
|
|
|
|
|
at your option, any later version of Perl 5 you may have available. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |