Apache2::Filter::HTTPHeadersFixupApache2::Filter::HTTPHeadersFixup is a Perl module to manipulate Apache 2 HTTP Headers. | |
Download |
Apache2::Filter::HTTPHeadersFixup Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Philip M. Gollucci
- Publisher web site:
- http://search.cpan.org/~pgollucci/mod_perl-2.0.3/docs/api/ModPerl/MM.pod
Apache2::Filter::HTTPHeadersFixup Tags
Apache2::Filter::HTTPHeadersFixup Description
Apache2::Filter::HTTPHeadersFixup is a Perl module to manipulate Apache 2 HTTP Headers. Apache2::Filter::HTTPHeadersFixup is a Perl module to manipulate Apache 2 HTTP Headers.Synopsis # MyApache/FixupInputHTTPHeaders.pm package MyApache::FixupInputHTTPHeaders; use strict; use warnings FATAL => 'all'; use base qw(Apache2::Filter::HTTPHeadersFixup); sub manip { my ($class, $ra_headers) = @_; # modify a header for (@$ra_headers) { s/^(Foo).*/$1: Moahaha/; } # push header (don't forget "n"!) push @$ra_headers, "Bar: MidBarn"; } 1; # httpd.conf < VirtualHost Zoot > PerlModule MyApache::FixupInputHTTPHeaders PerlInputFilterHandler MyApache::FixupInputHTTPHeaders < /VirtualHost > # similar for output headersApache2::Filter::HTTPHeadersFixup is a super class which provides an easy way to manipulate HTTP headers without invoking any mod_perl HTTP handlers. This is accomplished by using input and/or output connection filters.It supports KeepAlive connections.This class cannot be used as is. It has to be sub-classed. Read on. Requirements: · Perl
Apache2::Filter::HTTPHeadersFixup Related Software