Receives data from the HTTP server to be sent back to the client.
Reimplemented from tcpwatch::ForwardingEndpoint.
01055 : """Receives data from the HTTP server to be sent back to the client.""" while 1: parser = self.response_parser if parser.completed: self.finished = 1 self.flush() # Note that any extra data returned from the server is # ignored. Should it be? :-( return if not data: break consumed = parser.received(data) fragment = data[:consumed] data = data[consumed:] ForwardingEndpoint.received(self, fragment) self.held.append(fragment) self.flush() def flush(self):