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

Method finish

tornado/test/routing_test.py:170–177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

168 self.connection = connection
169
170 def finish(self):
171 response_body = b"OK"
172 self.connection.write_headers(
173 ResponseStartLine("HTTP/1.1", 200, "OK"),
174 HTTPHeaders({"Content-Length": str(len(response_body))}),
175 )
176 self.connection.write(response_body)
177 self.connection.finish()
178
179 return MessageDelegate(request_conn)
180

Callers

nothing calls this directly

Calls 5

ResponseStartLineClass · 0.90
HTTPHeadersClass · 0.90
write_headersMethod · 0.45
writeMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected