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

Method read_response

python/python3/tornado/test/httpserver_test.py:848–851  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

846
847 @gen.coroutine
848 def read_response(self):
849 self.headers = yield self.read_headers()
850 body = yield self.stream.read_bytes(int(self.headers["Content-Length"]))
851 self.assertEqual(b"Hello world", body)
852
853 def close(self):
854 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