[Zope3-dev] RFC: Make HTTP streaming of large data simpler

Christian Theune ct at gocept.com
Tue Dec 6 13:01:48 EST 2005


Am Dienstag, den 06.12.2005, 12:01 -0200 schrieb Sidnei da Silva:
> On Tue, Dec 06, 2005 at 08:55:56AM -0500, Jim Fulton wrote:
> | Interesting.  I wasn't aware of this in Z2.  Zope 3 definately
> | doesn't have this.  Sindnei, have you verified that this actially
> | works in Z2?  I didn't think the Zope 2 publisher actually started
> | propducing output until the request was finished.
> 
> Yes, I can confirm it works like I described. I've been using and
> relying on this (where this == chunked response producing output
> before the request is finished) on Enfold Desktop for a while.

Right. You also have a .flush() method to force it pushing stuff to the
network:

            REQUEST.RESPONSE.write(data)
            REQUEST.RESPONSE.flush()


-- 
gocept gmbh & co. kg - schalaunische str. 6 - 06366 koethen - germany
www.gocept.com - ct at gocept.com - phone +49 3496 30 99 112 -
fax +49 3496 30 99 118 - zope and plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20051206/ff8caf13/attachment.bin


More information about the Zope3-dev mailing list