| 类和说明 |
|---|
| Handshake
Processing WebSocket Handshake
Sample (Draft06)
client => server
GET /chat HTTP/1.1
Host: server.example.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Origin: http://example.com
Sec-WebSocket-Protocol: chat, superchat
Sec-WebSocket-Version:6
server => client
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
Sec-WebSocket-Protocol: chat
|
| SSLHandshake
The Class SSLHandshake.
|
| 类和说明 |
|---|
| SSLHandshake.HandshakeCallback |
| 类和说明 |
|---|
| Handshake
Processing WebSocket Handshake
Sample (Draft06)
client => server
GET /chat HTTP/1.1
Host: server.example.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Origin: http://example.com
Sec-WebSocket-Protocol: chat, superchat
Sec-WebSocket-Version:6
server => client
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
Sec-WebSocket-Protocol: chat
|
| SSLHandshake
The Class SSLHandshake.
|
| 类和说明 |
|---|
| ProxyHandshake
HTTP Proxy Handshake class
client => server
CONNECT ws.example.com HTTP/1.1
Host: ws.example.com
server => client
HTTP/1.1 200 Connection established
Proxy-agent:
|
Copyright © 2020. All rights reserved.