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

Method _read_body_until_close

tornado/http1connection.py:696–704  ·  view source on GitHub ↗
(
        self, delegate: httputil.HTTPMessageDelegate
    )

Source from the content-addressed store, hash-verified

694 assert crlf == b"\r\n"
695
696 async def _read_body_until_close(
697 self, delegate: httputil.HTTPMessageDelegate
698 ) -> None:
699 body = await self.stream.read_until_close()
700 if not self._write_finished or self.is_client:
701 with _ExceptionLoggingContext(app_log):
702 ret = delegate.data_received(body)
703 if ret is not None:
704 await ret
705
706
707class _GzipMessageDelegate(httputil.HTTPMessageDelegate):

Callers 1

_read_bodyMethod · 0.95

Calls 3

read_until_closeMethod · 0.80
data_receivedMethod · 0.45

Tested by

no test coverage detected