(self)
| 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): |
nothing calls this directly
no test coverage detected