| 接口 | 说明 |
|---|---|
| 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
|
| HttpResponseHeaderParser |
The Class HttpResponseHeaderParser.
|
| 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:
|
| SSLHandshake |
The Class SSLHandshake.
|
| X509AlwaysTrustManager |
Copyright © 2020. All rights reserved.