Sec-WebSocket-Accept - HTTP 编辑
Draft
This page is not complete.
The Sec-WebSocket-Accept header is used in the websocket opening handshake. It would appear in the response headers. That is, this is header is sent from server to client to inform that server is willing to initiate a websocket connection.
Header type | Response header |
---|---|
Forbidden header name | no |
Syntax
Sec-WebSocket-Accept: <hashed key>
Directives
- <hashed key>
The server takes the value of the Sec-WebSocket-Key sent in the handshake request, appends
258EAFA5-E914-47DA-95CA-C5AB0DC85B11
, takes SHA-1 of the new value, and is then base64 encoded.
Examples
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
Specifications
Specification | Title |
---|---|
RFC 6455, section 11.3.3: Sec-WebSocket-Accept | The WebSocket Protocol |
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论