| 1 | package HTTP::Proxy::BodyFilter; | ||||||||||
| 2 | 16 | $HTTP::Proxy::BodyFilter::VERSION = '0.304'; | |||||||||
| 3 | 16 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 16 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 66 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 7 | 66 | my $class = shift; | |||||||||
| 8 | 66 | my $self = bless {}, $class; | |||||||||
| 9 | 66 | ▶ | $self->init(@_) if $self->can('init'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 10 | 54 | return $self; | |||||||||
| 11 | } | ||||||||||
| 12 | |||||||||||
| 13 | 66 | ▶ | sub proxy { | ||||||||
|
Subroutine
proxy: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 14 | 66 | my ( $self, $new ) = @_; | |||||||||
| 15 | 66 | ▶ | return $new ? $self->{_hpbf_proxy} = $new : $self->{_hpbf_proxy}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 0 | ▶ | sub filter { | ||||||||
|
Subroutine
filter: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 19 | 0 | croak "HTTP::Proxy::HeaderFilter cannot be used as a filter"; | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 1 | ▶ | sub will_modify { 1 } # by default, we expect the filter to modify data | ||||||||
|
Subroutine
will_modify: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 23 | |||||||||||
| 24 | 16 | 1; | |||||||||
| 25 | |||||||||||
| 26 | __END__ | ||||||||||