line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::Proxy::HeaderFilter; |
2
|
|
|
|
|
|
|
$HTTP::Proxy::HeaderFilter::VERSION = '0.302'; |
3
|
67
|
|
|
67
|
|
273
|
use strict; |
|
67
|
|
|
|
|
77
|
|
|
67
|
|
|
|
|
2080
|
|
4
|
67
|
|
|
67
|
|
277
|
use Carp; |
|
67
|
|
|
|
|
68
|
|
|
67
|
|
|
|
|
9378
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
75
|
|
|
75
|
1
|
3725
|
my $class = shift; |
8
|
75
|
|
|
|
|
296
|
my $self = bless {}, $class; |
9
|
75
|
100
|
|
|
|
694
|
$self->init(@_) if $self->can('init'); |
10
|
73
|
|
|
|
|
242
|
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
|
971
|
|
|
971
|
1
|
1289
|
my ( $self, $new ) = @_; |
19
|
971
|
100
|
|
|
|
5613
|
return $new ? $self->{_hphf_proxy} = $new : $self->{_hphf_proxy}; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |