Man Page: plack::middleware::contentlength
Operating Environment: debian
Section: 3pm
Plack::Middleware::ContentLength(3pm) User Contributed Perl Documentation Plack::Middleware::ContentLength(3pm)NAMEPlack::Middleware::ContentLength - Adds Content-Length header automaticallySYNOPSIS# in app.psgi builder { enable "Plack::Middleware::ContentLength"; $app; } # Or in Plack::Handler::* $app = Plack::Middleware::ContentLength->wrap($app);DESCRIPTIONPlack::Middleware::ContentLength is a middleware that automatically adds "Content-Length" header when it's appropriate i.e. the response has a content body with calculable size (array of chunks or a real filehandle). This middleware can also be used as a library from PSGI server implementations to automatically set "Content-Length" rather than in the end user level.AUTHORTatsuhiko MiyagawaSEE ALSORack::ContentLength perl v5.14.2 2011-02-27 Plack::Middleware::ContentLength(3pm)
| Similar Topics in the Unix Linux Community |
|---|
| awk or sed - Convert 2 lines to 1 line |
| How can I do this in VI editor? |
| Weird 'find' results |
| New UNIX and Linux History Sections |