1HTTP::Proxy::BodyFilterU:s:etragCso(n3t)ributed Perl DocHuTmTePn:t:aPtriooxny::BodyFilter::tags(3)
2
3
4
6 HTTP::Proxy::BodyFilter::tags - A filter that outputs only complete
7 tags
8
10 use HTTP::Proxy::BodyFilter::tags;
11 use MyFilter; # this filter only works on complete tags
12
13 my $filter = MyFilter->new();
14
15 # note that both filters will be run on the same messages
16 # (those with a MIME type of text/html)
17 $proxy->push_filter(
18 mime => 'text/*',
19 response => HTTP::Proxy::BodyFilter::tags->new
20 );
21 $proxy->push_filter( mime => 'text/html', response => $filter );
22
24 The HTTP::Proxy::BodyFilter::tags filter makes sure that the next
25 filter in the filter chain will only receive complete tags.
26
28 This class defines two methods, that are called automatically:
29
30 filter()
31 Buffer incomplete tags to ensure that subsequent filters will only
32 receive complete HTML tags.
33
34 will_modify()
35 This method returns a false value, thus indicating to the system
36 that it will not modify data passing through.
37
39 HTTP::Proxy, HTTP::Proxy::BodyFilter.
40
42 Philippe "BooK" Bruhat, <book@cpan.org>.
43
45 Copyright 2003-2015, Philippe Bruhat.
46
48 This module is free software; you can redistribute it or modify it
49 under the same terms as Perl itself.
50
51
52
53perl v5.32.0 2020-07-28 HTTP::Proxy::BodyFilter::tags(3)