use MyFilter; # this filter only works on complete tags
my $filter = MyFilter->new();
# note that both filters will be run on the same messages
# (those with a MIME type of text/html)
mime => 'text/*',
response => HTTP::Proxy::BodyFilter::tags->new
$proxy->push_filter( mime => 'text/html', response => $filter );
DESCRIPTIONThe HTTP::Proxy::BodyFilter::tags filter makes sure that the next filter in the filter chain will only receive complete tags.
METHODThis class defines two methods, that are called automatically:
- Buffer incomplete tags to ensure that subsequent filters will only receive complete HTML tags.
- This method returns a false value, thus indicating to the system that it will not modify data passing through.
AUTHORPhilippe ``BooK'' Bruhat, <[email protected]>.
COPYRIGHTCopyright 2003-2015, Philippe Bruhat.
LICENSEThis module is free software; you can redistribute it or modify it under the same terms as Perl itself.