def open(self):
try:
# In a websocket context, many RequestHandler methods
# raise RuntimeErrors.
self.set_status(503)
raise Exception("did not get expected exception")
except RuntimeError:
pass
self.write_message(self.request.headers.get('X-Test', ''))
websocket_test.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录