1Plack::Middleware::ContUesnetrLeCnogntthr(i3b)uted PerlPDloaccukm:e:nMtiadtdiloenware::ContentLength(3)
2
3
4
6 Plack::Middleware::ContentLength - Adds Content-Length header
7 automatically
8
10 # in app.psgi
11
12 builder {
13 enable "Plack::Middleware::ContentLength";
14 $app;
15 }
16
17 # Or in Plack::Handler::*
18 $app = Plack::Middleware::ContentLength->wrap($app);
19
21 Plack::Middleware::ContentLength is a middleware that automatically
22 adds "Content-Length" header when it's appropriate i.e. the response
23 has a content body with calculable size (array of chunks or a real
24 filehandle).
25
26 This middleware can also be used as a library from PSGI server
27 implementations to automatically set "Content-Length" rather than in
28 the end user level.
29
31 Tatsuhiko Miyagawa
32
34 Rack::ContentLength
35
36
37
38perl v5.12.3 2011-02-27Plack::Middleware::ContentLength(3)