MCPcopy Create free account
hub / github.com/EasyIME/PIME / Delegate

Class Delegate

python/python3/tornado/test/httpserver_test.py:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 chunks = []
58
59 class Delegate(HTTPMessageDelegate):
60 def headers_received(self, start_line, headers):
61 self.headers = headers
62 self.start_line = start_line
63
64 def data_received(self, chunk):
65 chunks.append(chunk)
66
67 def finish(self):
68 conn.detach() # type: ignore
69
70 conn = HTTP1Connection(stream, True)
71 delegate = Delegate()

Callers 1

read_stream_bodyFunction · 0.70

Calls

no outgoing calls

Tested by 1

read_stream_bodyFunction · 0.56