(self)
| 969 | |
| 970 | @gen.coroutine |
| 971 | def read_headers(self): |
| 972 | first_line = yield self.stream.read_until(b"\r\n") |
| 973 | self.assertTrue(first_line.startswith(b"HTTP/1.1 200"), first_line) |
| 974 | header_bytes = yield self.stream.read_until(b"\r\n\r\n") |
| 975 | headers = HTTPHeaders.parse(header_bytes.decode("latin1")) |
| 976 | raise gen.Return(headers) |
| 977 | |
| 978 | @gen.coroutine |
| 979 | def read_response(self): |
no test coverage detected