line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::Proxy::BodyFilter; |
2
|
|
|
|
|
|
|
$HTTP::Proxy::BodyFilter::VERSION = '0.304'; |
3
|
16
|
|
|
16
|
|
2931
|
use strict; |
|
16
|
|
|
|
|
25
|
|
|
16
|
|
|
|
|
567
|
|
4
|
16
|
|
|
16
|
|
68
|
use Carp; |
|
16
|
|
|
|
|
21
|
|
|
16
|
|
|
|
|
2830
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
66
|
|
|
66
|
1
|
211373
|
my $class = shift; |
8
|
66
|
|
|
|
|
183
|
my $self = bless {}, $class; |
9
|
66
|
100
|
|
|
|
434
|
$self->init(@_) if $self->can('init'); |
10
|
54
|
|
|
|
|
180
|
return $self; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub proxy { |
14
|
66
|
|
|
66
|
1
|
131
|
my ( $self, $new ) = @_; |
15
|
66
|
100
|
|
|
|
476
|
return $new ? $self->{_hpbf_proxy} = $new : $self->{_hpbf_proxy}; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub filter { |
19
|
0
|
|
|
0
|
1
|
0
|
croak "HTTP::Proxy::HeaderFilter cannot be used as a filter"; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
1
|
|
|
1
|
1
|
3
|
sub will_modify { 1 } # by default, we expect the filter to modify data |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |