[Twisted-Python] HTTP PUT a GET's streaming response with treq

Phil Mayers p.mayers at imperial.ac.uk
Thu May 4 08:48:15 MDT 2017


On 04/05/17 14:32, Nagy, Attila wrote:

> Are there any problems with this approach?

You're poking at a private member of the .original IResponse there, and 
moreover the transport object which seems risky.

The single treq.collect call to consumer.write will also not necessarily 
respect the consumer-issued flow control (even if touching the 
_transport was valid, you don't know you won't get buffered data after 
you've been asked to stop)




More information about the Twisted-Python mailing list