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

Method test_http10_keepalive

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

Source from the content-addressed store, hash-verified

1020
1021 @gen_test
1022 def test_http10_keepalive(self):
1023 self.http_version = b"HTTP/1.0"
1024 yield self.connect()
1025 self.stream.write(b"GET / HTTP/1.0\r\nConnection: keep-alive\r\n\r\n")
1026 yield self.read_response()
1027 self.assertEqual(self.headers["Connection"], "Keep-Alive")
1028 self.stream.write(b"GET / HTTP/1.0\r\nConnection: keep-alive\r\n\r\n")
1029 yield self.read_response()
1030 self.assertEqual(self.headers["Connection"], "Keep-Alive")
1031 self.close()
1032
1033 @gen_test
1034 def test_http10_keepalive_extra_crlf(self):

Callers

nothing calls this directly

Calls 4

connectMethod · 0.95
read_responseMethod · 0.95
closeMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected