(self)
| 838 | |
| 839 | @gen.coroutine |
| 840 | def read_headers(self): |
| 841 | first_line = yield self.stream.read_until(b"\r\n") |
| 842 | self.assertTrue(first_line.startswith(b"HTTP/1.1 200"), first_line) |
| 843 | header_bytes = yield self.stream.read_until(b"\r\n\r\n") |
| 844 | headers = HTTPHeaders.parse(header_bytes.decode("latin1")) |
| 845 | raise gen.Return(headers) |
| 846 | |
| 847 | @gen.coroutine |
| 848 | def read_response(self): |
no test coverage detected