程序包 | 说明 |
---|---|
io.netty.example.http2.helloworld.client | |
io.netty.example.http2.tiles | |
io.netty.handler.codec.http |
Benchmarks for
io.netty.handler.codec.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 |
Benchmarks for
io.netty.handler.codec.http2 . |
限定符和类型 | 方法和说明 |
---|---|
protected void |
HttpResponseHandler.channelRead0(ChannelHandlerContext ctx,
FullHttpResponse msg) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
Http2RequestHandler.sendResponse(ChannelHandlerContext ctx,
java.lang.String streamId,
int latency,
FullHttpResponse response,
FullHttpRequest request) |
protected void |
Http1RequestHandler.sendResponse(ChannelHandlerContext ctx,
java.lang.String streamId,
int latency,
FullHttpResponse response,
FullHttpRequest request) |
限定符和类型 | 类和说明 |
---|---|
class |
DefaultFullHttpResponse
Default implementation of a
FullHttpResponse . |
限定符和类型 | 方法和说明 |
---|---|
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(java.lang.Object hint) |
FullHttpResponse |
DefaultFullHttpResponse.touch(java.lang.Object hint) |
限定符和类型 | 方法和说明 |
---|---|
void |
HttpClientUpgradeHandler.UpgradeCodec.upgradeTo(ChannelHandlerContext ctx,
FullHttpResponse upgradeResponse)
Performs an HTTP protocol upgrade from the source codec.
|
限定符和类型 | 方法和说明 |
---|---|
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. |
限定符和类型 | 方法和说明 |
---|---|
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
|
限定符和类型 | 方法和说明 |
---|---|
void |
Http2ClientUpgradeCodec.upgradeTo(ChannelHandlerContext ctx,
FullHttpResponse upgradeResponse) |