(self)
| 952 | self.http_version = b"HTTP/1.1" |
| 953 | |
| 954 | def tearDown(self): |
| 955 | # We just closed the client side of the socket; let the IOLoop run |
| 956 | # once to make sure the server side got the message. |
| 957 | self.io_loop.add_timeout(datetime.timedelta(seconds=0.001), self.stop) |
| 958 | self.wait() |
| 959 | |
| 960 | if hasattr(self, "stream"): |
| 961 | self.stream.close() |
| 962 | super().tearDown() |
| 963 | |
| 964 | # The next few methods are a crude manual http client |
| 965 | @gen.coroutine |