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

Method read_response

tornado/test/httpserver_test.py:979–982  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

977
978 @gen.coroutine
979 def read_response(self):
980 self.headers = yield self.read_headers()
981 body = yield self.stream.read_bytes(int(self.headers["Content-Length"]))
982 self.assertEqual(b"Hello world", body)
983
984 def close(self):
985 self.stream.close()

Callers 8

test_two_requestsMethod · 0.95
test_request_closeMethod · 0.95
test_http10Method · 0.95
test_http10_keepaliveMethod · 0.95
test_pipelined_cancelMethod · 0.95

Calls 2

read_headersMethod · 0.95
read_bytesMethod · 0.80

Tested by

no test coverage detected