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?