Streaming templating languages for use as WSGI body.

Adam Tauno Williams awilliam at whitemice.org
Thu Jan 6 14:11:27 EST 2011


On Thu, 2011年01月06日 at 11:07 -0800, Alice Bevan–McGregor wrote:
> On 2011年01月06日 10:00:39 -0800, Adam Tauno Williams said:
>> > With HTTP/1.0 [and WSGI is HTTP/1.0 only] you have to provide a 
> > Content-Length header - so you have to generate the entire response at 
> > once [however you want to muddy "at once"].
> Both of these statements are false.

Both these statements are true! I suggest you consult the HTTP spec.
A valid Content-Length field value is required on all HTTP/1.0 request
messages containing an entity body.
> > Streaming responses to the client requires Chunked-Encoding [HTTP/1.1] 
> > which is not possible via WSGI.
> This is also false.

You claim of falsehood is false.
> Oh for three, please try again. :)

OK.


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /