[Twisted-web] streaming request (was: status of Twisted Web and Web 2)

Andrew McNabb amcnabb at mcnabbs.org
Thu Mar 6 12:16:52 EST 2008


On Thu, Mar 06, 2008 at 11:42:15AM -0500, Christopher Armstrong wrote:
> 
> I'm not sure how that applies. I really don't know how it would work.
> Generally, getting access to a one-shot deferred is done by calling a
> function which represents a request of some sort. This, on the other
> hand, is the opposite: the request is being made of the resource, and
> some data is being uploaded.

Seriously, it would be the same.  You call a function which represents a
request.  That function knows that the response might come incrementally
rather than all at once, so it returns a multi-shot deferred.

-- 
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://twistedmatrix.com/pipermail/twisted-web/attachments/20080306/55cd4f3f/attachment.pgp


More information about the Twisted-web mailing list