The signature of the filter() method is the following:
The $headers HTTP::Headers object is the one that will be sent to the client (if the filter is on the response stack) or origin server (if the filter is on the request stack). If $headers is modified by the filter, the modified headers will be sent to the client or server.
The init() method (if it exists) is called by the new() constructeur to perform all initisalisation tasks. Its called once in the filter lifetime.
|new()||The constructor is defined for all subclasses. Initialisation tasks (if any) for subclasses should be done in the init() method (see below).|
This method is called by the new() constructeur to perform all
initisalisation tasks. Its called once in the filter lifetime.
It receives all the parameters passed to new().
Standard HTTP::Proxy::HeaderFilter classes are lowercase.
The following HeaderFilters are included in the HTTP::Proxy distribution:
Please read each filters documentation for more details about their use.
simple This class lets you create a simple header filter from a code reference. standard This is the filter that provides standard headers handling for HTTP::Proxy. It is loaded automatically by HTTP::Proxy.
Some methods are available to filters, so that they can eventually use the little knowledge they might have of HTTP::Proxys internals. They mostly are accessors.
proxy() Gets a reference to the HTTP::Proxy objects that owns the filter. This gives access to some of the proxy methods.
Philippe BooK Bruhat, <firstname.lastname@example.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.
|perl v5.20.3||HTTP::PROXY::HEADERFILTER (3)||2015-06-16|