Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Plack::Middleware::ConUserLContributed PerlPlack::Middleware::ContentLength(3)

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

SYNOPSIS
	 # in app.psgi

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

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

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.

AUTHOR
       Tatsuhiko Miyagawa

SEE ALSO
       Rack::ContentLength

perl v5.24.1			  2015-12-0Plack::Middleware::ContentLength(3)

NAME | SYNOPSIS | DESCRIPTION | AUTHOR | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Plack::Middleware::ContentLength&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help