line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::Proxy::HeaderFilter; |
2
|
|
|
|
|
|
|
$HTTP::Proxy::HeaderFilter::VERSION = '0.304'; |
3
|
70
|
|
|
70
|
|
297
|
use strict; |
|
70
|
|
|
|
|
109
|
|
|
70
|
|
|
|
|
2649
|
|
4
|
70
|
|
|
70
|
|
341
|
use Carp; |
|
70
|
|
|
|
|
85
|
|
|
70
|
|
|
|
|
11240
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
78
|
|
|
78
|
1
|
4193
|
my $class = shift; |
8
|
78
|
|
|
|
|
225
|
my $self = bless {}, $class; |
9
|
78
|
100
|
|
|
|
768
|
$self->init(@_) if $self->can('init'); |
10
|
76
|
|
|
|
|
247
|
return $self; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub filter { |
14
|
0
|
|
|
0
|
1
|
0
|
croak "HTTP::Proxy::HeaderFilter cannot be used as a filter"; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub proxy { |
18
|
981
|
|
|
981
|
1
|
1495
|
my ( $self, $new ) = @_; |
19
|
981
|
100
|
|
|
|
6272
|
return $new ? $self->{_hphf_proxy} = $new : $self->{_hphf_proxy}; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |