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

2019-02-10 Thread Adi Roiban
On Sun, 10 Feb 2019 at 18:23, Mehtab Zafar wrote: > > 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. > >

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

2019-02-10 Thread Mehtab Zafar
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