MCPcopy
hub / github.com/tornadoweb/tornado / Delegate

Class Delegate

tornado/test/httpserver_test.py:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

read_stream_bodyFunction · 0.70

Calls

no outgoing calls

Tested by 1

read_stream_bodyFunction · 0.56