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 |
FullHttpResponse.copy() |
FullHttpResponse |
DefaultFullHttpResponse.copy() |
FullHttpResponse |
FullHttpResponse.duplicate() |
FullHttpResponse |
DefaultFullHttpResponse.duplicate() |
FullHttpResponse |
FullHttpResponse.replace(ByteBuf content) |
FullHttpResponse |
DefaultFullHttpResponse.replace(ByteBuf content) |
FullHttpResponse |
FullHttpResponse.retain() |
FullHttpResponse |
DefaultFullHttpResponse.retain() |
FullHttpResponse |
FullHttpResponse.retain(int increment) |
FullHttpResponse |
DefaultFullHttpResponse.retain(int increment) |
FullHttpResponse |
FullHttpResponse.retainedDuplicate() |
FullHttpResponse |
DefaultFullHttpResponse.retainedDuplicate() |
FullHttpResponse |
FullHttpResponse.setProtocolVersion(HttpVersion version) |
FullHttpResponse |
DefaultFullHttpResponse.setProtocolVersion(HttpVersion version) |
FullHttpResponse |
FullHttpResponse.setStatus(HttpResponseStatus status) |
FullHttpResponse |
DefaultFullHttpResponse.setStatus(HttpResponseStatus status) |
FullHttpResponse |
FullHttpResponse.touch() |
FullHttpResponse |
DefaultFullHttpResponse.touch() |
FullHttpResponse |
FullHttpResponse.touch(Object hint) |
FullHttpResponse |
DefaultFullHttpResponse.touch(Object hint) |
Modifier and Type | Method and Description |
---|---|
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 |
WebSocketServerHandshaker00.newHandshakeResponse(FullHttpRequest req,
HttpHeaders headers)
Handle the web socket handshake for the web socket specification HyBi version 0 and lower.
|
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.
|
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 |
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 abstract void |
WebSocketClientHandshaker.verify(FullHttpResponse response)
Verify the
FullHttpResponse and throws a WebSocketHandshakeException if something is wrong. |
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-
|
Modifier and Type | Method and Description |
---|---|
static FullHttpResponse |
HttpConversionUtil.toFullHttpResponse(int streamId,
Http2Headers http2Headers,
ByteBufAllocator alloc,
boolean validateHttpHeaders)
Create a new object to contain the response data
|
static FullHttpResponse |
HttpConversionUtil.toFullHttpResponse(int streamId,
Http2Headers http2Headers,
ByteBuf content,
boolean validateHttpHeaders)
Create a new object to contain the response data
|
Modifier and Type | Method and Description |
---|---|
void |
Http2ClientUpgradeCodec.upgradeTo(ChannelHandlerContext ctx,
FullHttpResponse upgradeResponse) |
Copyright © 2008–2024 The Netty Project. All rights reserved.