软件包 | 描述 |
---|---|
io.netty.handler.codec.http |
编码器,解码器及其相关的HTTP消息类型。
|
io.netty.handler.codec.http.websocketx |
Web Socket数据帧的编码器,解码器,握手及其相关消息类型。
|
io.netty.handler.codec.http2 |
用于发送和接收HTTP / 2帧的处理程序。
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultFullHttpResponse
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(java.lang.Object hint) |
FullHttpResponse |
DefaultFullHttpResponse.touch(java.lang.Object hint) |
Modifier and Type | Method and Description |
---|---|
void |
HttpClientUpgradeHandler.UpgradeCodec.upgradeTo(ChannelHandlerContext ctx, FullHttpResponse upgradeResponse)
从源代码编解码器执行HTTP协议升级。
|
Modifier and Type | Method and Description |
---|---|
protected FullHttpResponse |
WebSocketServerHandshaker13.newHandshakeResponse(FullHttpRequest req, HttpHeaders headers)
处理Web套接字规范
HyBi versions 13-17的Web套接字握手。
|
protected FullHttpResponse |
WebSocketServerHandshaker08.newHandshakeResponse(FullHttpRequest req, HttpHeaders headers)
处理Web套接字规范
HyBi version 8 to 10的Web套接字握手。
|
protected FullHttpResponse |
WebSocketServerHandshaker07.newHandshakeResponse(FullHttpRequest req, HttpHeaders headers)
处理Web套接字规范
HyBi version 7的Web套接字握手。
|
protected FullHttpResponse |
WebSocketServerHandshaker00.newHandshakeResponse(FullHttpRequest req, HttpHeaders headers)
处理Web套接字规范
HyBi version 0及更低版本的Web套接字握手。
|
protected abstract FullHttpResponse |
WebSocketServerHandshaker.newHandshakeResponse(FullHttpRequest req, HttpHeaders responseHeaders)
返回将用于响应握手请求的新{@link FullHttpResponse)。
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocketClientHandshaker.finishHandshake(Channel channel, FullHttpResponse response)
验证并完成由
WebSocketClientHandshaker.handshake(io.netty.channel.Channel) }发起的开放握手。
|
protected void |
WebSocketClientHandshaker13.verify(FullHttpResponse response)
进程服务器响应:HTTP / 1.1 101交换协议升级:websocket连接:升级Sec-WebSocket-Accept:s3pPLMBiTxaQ9kYGzzhZRbK + xOo = Sec-WebSocket协议:聊天
|
protected void |
WebSocketClientHandshaker08.verify(FullHttpResponse response)
进程服务器响应:HTTP / 1.1 101交换协议升级:websocket连接:升级Sec-WebSocket-Accept:s3pPLMBiTxaQ9kYGzzhZRbK + xOo = Sec-WebSocket协议:聊天
|
protected void |
WebSocketClientHandshaker07.verify(FullHttpResponse response)
进程服务器响应:HTTP / 1.1 101交换协议升级:websocket连接:升级Sec-WebSocket-Accept:s3pPLMBiTxaQ9kYGzzhZRbK + xOo = Sec-WebSocket协议:聊天
|
protected void |
WebSocketClientHandshaker00.verify(FullHttpResponse response)
进程服务器响应:HTTP / 1.1 101 WebSocket协议握手升级:WebSocket连接:升级Sec-WebSocket-Origin:http://example.com Sec-WebSocket-位置:ws://example.com/demo Sec-WebSocket协议:样品8jKS'y:G * Co,Wxa-
|
protected abstract void |
WebSocketClientHandshaker.verify(FullHttpResponse response)
验证 FullHttpResponse 并在出现问题时抛出WebSocketHandshakeException 。
|
Modifier and Type | Method and Description |
---|---|
static FullHttpResponse |
HttpConversionUtil.toFullHttpResponse(int streamId, Http2Headers http2Headers, ByteBufAllocator alloc, boolean validateHttpHeaders)
创建一个新的对象来包含响应数据
|
Modifier and Type | Method and Description |
---|---|
void |
Http2ClientUpgradeCodec.upgradeTo(ChannelHandlerContext ctx, FullHttpResponse upgradeResponse) |
Copyright © 2008–2018 The Netty Project. All rights reserved.