程序包 | 说明 |
---|---|
io.netty.handler.codec.http |
Encoder, decoder and their related message types for HTTP.
|
io.netty.handler.codec.http.websocketx |
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
|
限定符和类型 | 类和说明 |
---|---|
class |
DefaultFullHttpResponse
Default implementation of a
FullHttpResponse . |
限定符和类型 | 方法和说明 |
---|---|
FullHttpResponse |
FullHttpResponse.copy() |
FullHttpResponse |
DefaultFullHttpResponse.copy() |
FullHttpResponse |
DefaultFullHttpResponse.duplicate() |
FullHttpResponse |
FullHttpResponse.retain() |
FullHttpResponse |
DefaultFullHttpResponse.retain() |
FullHttpResponse |
FullHttpResponse.retain(int increment) |
FullHttpResponse |
DefaultFullHttpResponse.retain(int increment) |
FullHttpResponse |
FullHttpResponse.setProtocolVersion(HttpVersion version) |
FullHttpResponse |
DefaultFullHttpResponse.setProtocolVersion(HttpVersion version) |
FullHttpResponse |
FullHttpResponse.setStatus(HttpResponseStatus status) |
FullHttpResponse |
DefaultFullHttpResponse.setStatus(HttpResponseStatus status) |
限定符和类型 | 方法和说明 |
---|---|
protected FullHttpResponse |
WebSocketServerHandshaker13.newHandshakeResponse(FullHttpRequest req,
HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi versions 13-17.
|
protected FullHttpResponse |
WebSocketServerHandshaker08.newHandshakeResponse(FullHttpRequest req,
HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi version 8 to 10.
|
protected FullHttpResponse |
WebSocketServerHandshaker07.newHandshakeResponse(FullHttpRequest req,
HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi version 7.
|
protected FullHttpResponse |
WebSocketServerHandshaker00.newHandshakeResponse(FullHttpRequest req,
HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi version 0 and lower.
|
protected abstract FullHttpResponse |
WebSocketServerHandshaker.newHandshakeResponse(FullHttpRequest req,
HttpHeaders responseHeaders)
Returns a new {@link FullHttpResponse) which will be used for as response to the handshake request.
|
限定符和类型 | 方法和说明 |
---|---|
void |
WebSocketClientHandshaker.finishHandshake(Channel channel,
FullHttpResponse response)
Validates and finishes the opening handshake initiated by
WebSocketClientHandshaker.handshake(io.netty.channel.Channel) }. |
protected void |
WebSocketClientHandshaker13.verify(FullHttpResponse response)
Process server response:
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
Sec-WebSocket-Protocol: chat
|
protected void |
WebSocketClientHandshaker08.verify(FullHttpResponse response)
Process server response:
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
Sec-WebSocket-Protocol: chat
|
protected void |
WebSocketClientHandshaker07.verify(FullHttpResponse response)
Process server response:
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
Sec-WebSocket-Protocol: chat
|
protected void |
WebSocketClientHandshaker00.verify(FullHttpResponse response)
Process server response:
HTTP/1.1 101 WebSocket Protocol Handshake
Upgrade: WebSocket
Connection: Upgrade
Sec-WebSocket-Origin: http://example.com
Sec-WebSocket-Location: ws://example.com/demo
Sec-WebSocket-Protocol: sample
8jKS'y:G*Co,Wxa-
|
protected abstract void |
WebSocketClientHandshaker.verify(FullHttpResponse response)
Verify the
FullHttpResponse and throws a WebSocketHandshakeException if something is wrong. |