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 |
---|
Installing Dash Shell on OS X Lion |
awk or sed - Convert 2 lines to 1 line |
Is UNIX an open source OS ? |
Weird 'find' results |
New UNIX and Linux History Sections |