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. James _______________________________________________ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com