Thanks
On May 12, 5:27 pm, "Scott Moonen" <[EMAIL PROTECTED]> wrote:
> Andrew, it will build up its contents in memory. Consider how an exception
> thrown in your view will cause the response never to even be sent.
>
> Your best bet if you want to do streaming is to pass an iterator to the
> Htt
Andrew, it will build up its contents in memory. Consider how an exception
thrown in your view will cause the response never to even be sent.
Your best bet if you want to do streaming is to pass an iterator to the
HttpResponse constructor. Your iterator should yield strings to its caller.
--
Hi,
On Mon, 2008-05-12 at 09:16 -0700, Andrew Smith wrote:
> Hello
>
> When I use response as a file-like object, by calling response.write
> or passing it to something which expects a file-like object, does it
> build up its contents in memory or stream them straight to the
> browser?
It build
Hello
When I use response as a file-like object, by calling response.write
or passing it to something which expects a file-like object, does it
build up its contents in memory or stream them straight to the
browser?
TIA
Andy
--~--~-~--~~~---~--~~
You received thi
4 matches
Mail list logo