[Web-SIG] WSGI 2

James Bennett ubernostrum at gmail.com
Tue Aug 4 20:08:03 CEST 2009


On Tue, Aug 4, 2009 at 11:54 AM, James Y Knight<foom at fuhm.net> wrote:
> But that works just fine today. Your WSGI app sends streaming data back
> using the iterator functionality, and the server automatically turns it into
> chunks if it's talking to an HTTP 1.1 client. What's the problem?

No, it doesn't work just fine today. Either the server has to assume
that every response from that application should be chunked (which is
wrong), or the application needs a way to tell the server to chunk.
Turns out HTTP has a way to indicate that, but WSGI outright forbids
its use. So instead you have to invent out-of-band mechanisms for the
application to tell the server what to do, and in the process reinvent
part of HTTP.


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."


More information about the Web-SIG mailing list