GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Plack::Middleware::ContentLength(3) User Contributed Perl Documentation Plack::Middleware::ContentLength(3)

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

  # in app.psgi

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

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

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.

Tatsuhiko Miyagawa

Rack::ContentLength
2020-11-30 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.