GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
HTTP::Proxy::BodyFilter::tags(3) User Contributed Perl Documentation HTTP::Proxy::BodyFilter::tags(3)

HTTP::Proxy::BodyFilter::tags - A filter that outputs only complete tags

    use HTTP::Proxy::BodyFilter::tags;
    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)
    $proxy->push_filter(
        mime     => 'text/*',
        response => HTTP::Proxy::BodyFilter::tags->new
    );
    $proxy->push_filter( mime => 'text/html', response => $filter );

The HTTP::Proxy::BodyFilter::tags filter makes sure that the next filter in the filter chain will only receive complete tags.

This class defines two methods, that are called automatically:
filter()
Buffer incomplete tags to ensure that subsequent filters will only receive complete HTML tags.
will_modify()
This method returns a false value, thus indicating to the system that it will not modify data passing through.

HTTP::Proxy, HTTP::Proxy::BodyFilter.

Philippe "BooK" Bruhat, <book@cpan.org>.

Copyright 2003-2015, Philippe Bruhat.

This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
2015-06-16 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.