Plack::Middleware::ContentLength(3pm)

Plack::Middleware::ContentLength3pm

Adds content-length header automatically

Usage

  # in app.psgi
  builder {
      enable "Plack::Middleware::ContentLength";
      $app;
  }
  # Or in Plack::Handler::*
  $app = Plack::Middleware::ContentLength->wrap($app);

Overview

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.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

Author

Tatsuhiko Miyagawa

From libplack-perl 1.0051-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.