[Twisted-Python] web2: http Content-Length header

Pieter Grimmerink mailinglists at grimmerink.nl
Wed Dec 6 04:35:11 EST 2006

On Wednesday 06 December 2006 01:54, David Reid wrote:
> Why don't you just use self.length when showing the progress?

The length is not passed to the Response object.

twisted/web2/client/http.py line 168:
self.response = http.Response(self.code, self.inHeaders, self.stream)

This response object is then passed to the responseDefer callback, which 
means we only have resultcode, headers and stream to work with.

Rgds, Pieter

More information about the Twisted-Python mailing list