(self)
| 821 | self.http_version = b"HTTP/1.1" |
| 822 | |
| 823 | def tearDown(self): |
| 824 | # We just closed the client side of the socket; let the IOLoop run |
| 825 | # once to make sure the server side got the message. |
| 826 | self.io_loop.add_timeout(datetime.timedelta(seconds=0.001), self.stop) |
| 827 | self.wait() |
| 828 | |
| 829 | if hasattr(self, "stream"): |
| 830 | self.stream.close() |
| 831 | super().tearDown() |
| 832 | |
| 833 | # The next few methods are a crude manual http client |
| 834 | @gen.coroutine |