更新时间:2023-12-04 18:11:52
我建议你阅读概述部分的文件中。
I suggest you read the overview section in the documentation.
应该有一些相关的内容有:
There should be some relevant content there:
修改
我才意识到你的问题是关于WebSockets的。我相信你可以使用你勾勒出的方法:
I just realized your question is about websockets. I believe you can use the approach you outline:
您应该可以使用访问WebSocket的处理程序中请求头 self.request.headers
。
You should be able to access the request headers inside the websocket handler using self.request.headers
.