Manlio Perillo wrote:
> Graham Dumpleton ha scritto:
> > On 27/01/2008, Manlio Perillo <[EMAIL PROTECTED]> wrote:
> >> This is just a suggestion, but what about "requiring" that a WSGI 
> >> implementation calls the WSGI application only when all 
> >> the request body has been read?
> > 
> > Can't do that. The input content could be dependent on partial 
> > response content which has already been returned by the WSGI 
> > application. Ie., something which streams in both ways.
> 
> Can you make an example of this use case?

PEP 333 allows the WSGI gateway to buffer the input if it chooses to do
so: "The server or gateway may perform reads on-demand as requested by
the application, or it may pre- read the client's request body and
buffer it in-memory or on disk, or use any other technique for providing
such an input stream, according to its preference."

- Brian

_______________________________________________
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

Reply via email to