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

Method test_http10

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

Source from the content-addressed store, hash-verified

876 # keepalive is supported for http 1.0 too, but it's opt-in
877 @gen_test
878 def test_http10(self):
879 self.http_version = b"HTTP/1.0"
880 yield self.connect()
881 self.stream.write(b"GET / HTTP/1.0\r\n\r\n")
882 yield self.read_response()
883 data = yield self.stream.read_until_close()
884 self.assertTrue(not data)
885 self.assertTrue("Connection" not in self.headers)
886 self.close()
887
888 @gen_test
889 def test_http10_keepalive(self):

Callers

nothing calls this directly

Calls 5

connectMethod · 0.95
read_responseMethod · 0.95
closeMethod · 0.95
read_until_closeMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected