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

Method close

tornado/http1connection.py:350–355  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

348 self._clear_callbacks()
349
350 def close(self) -> None:
351 if self.stream is not None:
352 self.stream.close()
353 self._clear_callbacks()
354 if not self._finish_future.done():
355 future_set_result_unless_cancelled(self._finish_future, None)
356
357 def detach(self) -> iostream.IOStream:
358 """Take control of the underlying stream.

Callers 6

_read_messageMethod · 0.95
_finish_requestMethod · 0.95
_server_request_loopMethod · 0.95
_format_chunkMethod · 0.45
finishMethod · 0.45
closeMethod · 0.45

Calls 3

_clear_callbacksMethod · 0.95
doneMethod · 0.45

Tested by

no test coverage detected