Package | Description |
---|---|
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.
|
io.netty.handler.codec.http2 |
Handlers for sending and receiving HTTP/2 frames.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultFullHttpResponse
Default implementation of a
FullHttpResponse . |
Modifier and Type | Method and Description |
---|---|
FullHttpResponse |
DefaultFullHttpResponse.copy() |
FullHttpResponse |
FullHttpResponse.copy() |
FullHttpResponse |
DefaultFullHttpResponse.copy(ByteBuf newContent) |
FullHttpResponse |
FullHttpResponse.copy(ByteBuf newContent) |
FullHttpResponse |
DefaultFullHttpResponse.duplicate() |
FullHttpResponse |
FullHttpResponse.duplicate() |
FullHttpResponse |
DefaultFullHttpResponse.retain() |
FullHttpResponse |
FullHttpResponse.retain() |
FullHttpResponse |
DefaultFullHttpResponse.retain(int increment) |
FullHttpResponse |
FullHttpResponse.retain(int increment) |
FullHttpResponse |
DefaultFullHttpResponse.setProtocolVersion(HttpVersion version) |
FullHttpResponse |
FullHttpResponse.setProtocolVersion(HttpVersion version) |
FullHttpResponse |
DefaultFullHttpResponse.setStatus(HttpResponseStatus status) |
FullHttpResponse |
FullHttpResponse.setStatus(HttpResponseStatus status) |
FullHttpResponse |
DefaultFullHttpResponse.touch() |
FullHttpResponse |
FullHttpResponse.touch() |
FullHttpResponse |
DefaultFullHttpResponse.touch(Object hint) |
FullHttpResponse |
FullHttpResponse.touch(Object hint) |
Modifier and Type | Method and Description |
---|---|
void |
HttpServerUpgradeHandler.UpgradeCodec.prepareUpgradeResponse(ChannelHandlerContext ctx,
FullHttpRequest upgradeRequest,
FullHttpResponse upgradeResponse)
Adds any headers to the 101 Switching protocols response that are appropriate for this protocol.
|
void |
HttpServerUpgradeHandler.UpgradeCodec.upgradeTo(ChannelHandlerContext ctx,
FullHttpRequest upgradeRequest,
FullHttpResponse upgradeResponse)
Performs an HTTP protocol upgrade from the source codec.
|
void |
HttpClientUpgradeHandler.UpgradeCodec.upgradeTo(ChannelHandlerContext ctx,
FullHttpResponse upgradeResponse)
Performs an HTTP protocol upgrade from the source codec.
|
Modifier and Type | Method and Description |
---|---|
protected FullHttpResponse |
WebSocketServerHandshaker07.newHandshakeResponse(FullHttpRequest req,
HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi version 7.
|
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.
|
protected FullHttpResponse |
WebSocketServerHandshaker13.newHandshakeResponse(FullHttpRequest req,
HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi versions 13-17.
|
protected FullHttpResponse |
WebSocketServerHandshaker00.newHandshakeResponse(FullHttpRequest req,
HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi version 0 and lower.
|
protected FullHttpResponse |
WebSocketServerHandshaker08.newHandshakeResponse(FullHttpRequest req,
HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi version 8 to 10.
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocketClientHandshaker.finishHandshake(Channel channel,
FullHttpResponse response)
Validates and finishes the opening handshake initiated by
WebSocketClientHandshaker.handshake(io.netty.channel.Channel) }. |
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 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 abstract void |
WebSocketClientHandshaker.verify(FullHttpResponse response)
Verfiy the
FullHttpResponse and throws a WebSocketHandshakeException if something is wrong. |
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
|
Modifier and Type | Method and Description |
---|---|
static FullHttpResponse |
HttpUtil.toHttpResponse(int streamId,
Http2Headers http2Headers,
boolean validateHttpHeaders)
Create a new object to contain the response data
|
Modifier and Type | Method and Description |
---|---|
void |
Http2ServerUpgradeCodec.prepareUpgradeResponse(ChannelHandlerContext ctx,
FullHttpRequest upgradeRequest,
FullHttpResponse upgradeResponse) |
void |
Http2ServerUpgradeCodec.upgradeTo(ChannelHandlerContext ctx,
FullHttpRequest upgradeRequest,
FullHttpResponse upgradeResponse) |
void |
Http2ClientUpgradeCodec.upgradeTo(ChannelHandlerContext ctx,
FullHttpResponse upgradeResponse) |
Copyright © 2008–2015 The Netty Project. All rights reserved.