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)NAMEPlack::Middleware::SimpleContentFilter - Filters response contentSYNOPSISuse 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; };DESCRIPTIONThis 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.AUTHORTatsuhiko Miyagawa perl v5.14.2 2011-02-27 Plack::Middleware::SimpleContentFilter(3pm)
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 |