logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Plack::Middleware::ContentLength - Adds Content-Length header automatically

Author

       Tatsuhiko Miyagawa

Description

       Plack::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.

Name

       Plack::Middleware::ContentLength - Adds Content-Length header automatically

See Also

       Rack::ContentLength

perl v5.38.2                                       2024-01-20              Plack::Middleware::ContentLength(3pm)

Synopsis

         # in app.psgi

         builder {
             enable "Plack::Middleware::ContentLength";
             $app;
         }

         # Or in Plack::Handler::*
         $app = Plack::Middleware::ContentLength->wrap($app);

See Also