def on_connection_close(self):
if self.final_callback is not None:
message = "Connection closed"
if self.stream.error:
raise self.stream.error
try:
raise HTTPError(599, message)
except HTTPError:
self._handle_exception(*sys.exc_info())
simple_httpclient.py 文件源码
python
阅读 17
收藏 0
点赞 0
评论 0
评论列表
文章目录