(self)
| 1009 | # keepalive is supported for http 1.0 too, but it's opt-in |
| 1010 | @gen_test |
| 1011 | def test_http10(self): |
| 1012 | self.http_version = b"HTTP/1.0" |
| 1013 | yield self.connect() |
| 1014 | self.stream.write(b"GET / HTTP/1.0\r\n\r\n") |
| 1015 | yield self.read_response() |
| 1016 | data = yield self.stream.read_until_close() |
| 1017 | self.assertFalse(data) |
| 1018 | self.assertNotIn("Connection", self.headers) |
| 1019 | self.close() |
| 1020 | |
| 1021 | @gen_test |
| 1022 | def test_http10_keepalive(self): |
nothing calls this directly
no test coverage detected