brian at briansmith.org
Sun Jan 27 23:26:30 CET 2008
Manlio Perillo wrote:
> Graham Dumpleton ha scritto:
> > On 27/01/2008, Manlio Perillo <manlio_perillo at libero.it> 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."
More information about the Web-SIG