[Web-SIG] WSGI 2.0

James Y Knight foom at fuhm.net
Fri Apr 6 04:17:03 CEST 2007

On Apr 5, 2007, at 10:08 PM, Graham Dumpleton wrote:
> FWIW, in mod_wsgi I have now added a directive which allows one to
> enable within a specific context that chunked transfer encoding should
> be used for a response when a HTTP/1.1 client is being used. Thus, if
> you know the content generated from a resource at a particular URL
> within your application would benefit from chunked transfer encoding
> on the response, you could use:
>   <Location /mysite/some/resource>
>   WSGIOutputChunking On
>   </Location>
> At this stage is probably better than nothing given that WSGI doesn't
> provide a way of enabling it.

What's the point of a switch? If the app didn't provide a content- 
length, and you can't otherwise determine a content-length (because  
for example the result is a simple list of strings), just do chunked  
encoding output automatically.


More information about the Web-SIG mailing list