debian man page for plack::middleware::simplecontentfilter

Query: plack::middleware::simplecontentfilter

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Plack::Middleware::SimpleContentFilter(3pm)		User Contributed Perl Documentation	       Plack::Middleware::SimpleContentFilter(3pm)

NAME
Plack::Middleware::SimpleContentFilter - Filters response content
SYNOPSIS
use Plack::Builder; my $app = sub { return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ]; }; builder { enable "Plack::Middleware::SimpleContentFilter", filter => sub { s/Foo/Bar/g; }; $app; };
DESCRIPTION
This middleware should be considered as a demo. Running this against your application might break your HTML unless you code the filter callback carefully. Plack::Middleware::SimpleContentFilter is a simple content text filter to run against response body. This middleware is only enabled against responses with "text/*" Content-Type.
AUTHOR
Tatsuhiko Miyagawa perl v5.14.2 2011-02-27 Plack::Middleware::SimpleContentFilter(3pm)
Related Man Pages
plack::component(3pm) - debian
plack::middleware(3pm) - debian
plack::middleware::expires(3pm) - debian
plack::middleware::stacktrace(3pm) - debian
plack::middleware::static(3pm) - debian
Similar Topics in the Unix Linux Community
How can I do this in VI editor?
Introduction
Detecting unused variables...
One instance of comparing grep and awk