[Twisted-Python] Content length of a response in treq

Mehtab Zafar mehtab.zafar98 at gmail.com
Sun Feb 10 11:22:56 MST 2019


Hi,
I am trying to use treq for a project in which I am also going to generate
a progress bar for the downloading session. But the problem I am facing is
that I can't find a way to get the content length header from the response.

The "response.length"  gives me "unknown size".So I there a way I can get
the length for all types of content?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20190210/081cff62/attachment.html>


More information about the Twisted-Python mailing list