def _handle_request(self, response): self.responding = True d = readBody(response) d.addCallback(self._handle_body) return d