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

Class MessageDelegate

python/python3/tornado/test/routing_test.py:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34class BasicRouter(Router):
35 def find_handler(self, request, **kwargs):
36 class MessageDelegate(HTTPMessageDelegate):
37 def __init__(self, connection):
38 self.connection = connection
39
40 def finish(self):
41 self.connection.write_headers(
42 ResponseStartLine("HTTP/1.1", 200, "OK"),
43 HTTPHeaders({"Content-Length": "2"}),
44 b"OK",
45 )
46 self.connection.finish()
47
48 return MessageDelegate(request.connection)
49

Callers 2

find_handlerMethod · 0.70
start_requestMethod · 0.70

Calls

no outgoing calls

Tested by 2

find_handlerMethod · 0.56
start_requestMethod · 0.56