1Plack::Middleware::ContUesnetrLeCnogntthr(i3b)uted PerlPDloaccukm:e:nMtiadtdiloenware::ContentLength(3)
2
3
4

NAME

6       Plack::Middleware::ContentLength - Adds Content-Length header
7       automatically
8

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

31       Tatsuhiko Miyagawa
32

SEE ALSO

34       Rack::ContentLength
35
36
37
38perl v5.36.0                      2023-01-20Plack::Middleware::ContentLength(3)
Impressum