The HTTP::Proxy::BodyFilter::lines filter makes sure that the next filter
in the filter chain will only receive complete lines. The chunks
of data received by the following filters with either end with \n
or will be the last piece of data for the current HTTP message body.
You can change the idea the filter has of what is a line by passing to
its constructor the string it should understand as line ending. \n
is the default value.
my $filter = HTTP::Proxy::BodyFilter::lines->new( $sep );
This is similar to modifying $/ in a Perl program. In fact, this
filter has a behaviour so similar to modifying $/ that it also knows
about paragraph mode and record mode.
Note that the slurp mode is not supported. Please use
HTTP::Proxy::BodyFilter::complete to enable the generic store and forward