scriptmelvin

Results 2 comments of scriptmelvin

I am struggling with the same thing. I can't figure out how to get `IResponse.length` AND use `treq.collect` at the same time. * Is there an example somewhere? * If...

I figured it out, maybe it's useful to someone: ``` python currentbytes = 0 totalbytes = None def headers(response): if response.length != twisted.web.iweb.UNKNOWN_LENGTH: totalbytes = response.length return response def progress(packet):...