软件包 | 描述 |
---|---|
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 |
DefaultFullHttpRequest
默认实现 FullHttpRequest 。
|
Modifier and Type | Method and Description |
---|---|
FullHttpRequest |
FullHttpRequest.copy() |
FullHttpRequest |
DefaultFullHttpRequest.copy() |
FullHttpRequest |
FullHttpRequest.duplicate() |
FullHttpRequest |
DefaultFullHttpRequest.duplicate() |
FullHttpRequest |
FullHttpRequest.replace(ByteBuf content) |
FullHttpRequest |
DefaultFullHttpRequest.replace(ByteBuf content) |
FullHttpRequest |
FullHttpRequest.retain() |
FullHttpRequest |
DefaultFullHttpRequest.retain() |
FullHttpRequest |
FullHttpRequest.retain(int increment) |
FullHttpRequest |
DefaultFullHttpRequest.retain(int increment) |
FullHttpRequest |
FullHttpRequest.retainedDuplicate() |
FullHttpRequest |
DefaultFullHttpRequest.retainedDuplicate() |
FullHttpRequest |
FullHttpRequest.setMethod(HttpMethod method) |
FullHttpRequest |
DefaultFullHttpRequest.setMethod(HttpMethod method) |
FullHttpRequest |
FullHttpRequest.setProtocolVersion(HttpVersion version) |
FullHttpRequest |
DefaultFullHttpRequest.setProtocolVersion(HttpVersion version) |
FullHttpRequest |
FullHttpRequest.setUri(java.lang.String uri) |
FullHttpRequest |
DefaultFullHttpRequest.setUri(java.lang.String uri) |
FullHttpRequest |
FullHttpRequest.touch() |
FullHttpRequest |
DefaultFullHttpRequest.touch() |
FullHttpRequest |
FullHttpRequest.touch(java.lang.Object hint) |
FullHttpRequest |
DefaultFullHttpRequest.touch(java.lang.Object hint) |
FullHttpRequest |
HttpServerUpgradeHandler.UpgradeEvent.upgradeRequest()
获取触发协议升级的请求。
|
Modifier and Type | Method and Description |
---|---|
boolean |
HttpServerUpgradeHandler.UpgradeCodec.prepareUpgradeResponse(ChannelHandlerContext ctx, FullHttpRequest upgradeRequest, HttpHeaders upgradeHeaders)
根据
upgradeHeaders 的内容为
upgradeRequest 准备协议更新。
|
void |
HttpServerUpgradeHandler.UpgradeCodec.upgradeTo(ChannelHandlerContext ctx, FullHttpRequest upgradeRequest)
从源代码编解码器执行HTTP协议升级。
|
Modifier and Type | Method and Description |
---|---|
protected FullHttpRequest |
WebSocketClientHandshaker13.newHandshakeRequest()
/ **将打开请求发送到服务器:GET / chat HTTP / 1.1主机:server.example.com升级:websocket连接:升级Sec-WebSocket-Key:dGhlIHNhbXBsZSBub25jZQ == Sec-WebSocket-Origin:http://示例.com Sec-WebSocket协议:聊天,超级聊天Sec-WebSocket-Version:13
|
protected FullHttpRequest |
WebSocketClientHandshaker08.newHandshakeRequest()
/ **将打开请求发送到服务器:GET / chat HTTP / 1.1主机:server.example.com升级:websocket连接:升级Sec-WebSocket-Key:dGhlIHNhbXBsZSBub25jZQ == Sec-WebSocket-Origin:http://示例.com Sec-WebSocket协议:聊天,超级聊天Sec-WebSocket-Version:8
|
protected FullHttpRequest |
WebSocketClientHandshaker07.newHandshakeRequest()
/ **将打开请求发送到服务器:GET / chat HTTP / 1.1主机:server.example.com升级:websocket连接:升级Sec-WebSocket-Key:dGhlIHNhbXBsZSBub25jZQ == Sec-WebSocket-Origin:http://示例.com Sec-WebSocket协议:聊天,超级聊天Sec-WebSocket-Version:7
|
protected FullHttpRequest |
WebSocketClientHandshaker00.newHandshakeRequest()
将打开请求发送到服务器:GET / demo HTTP / 1.1升级:WebSocket连接:升级主机:example.com原产地:http://example.com Sec-WebSocket-Key1:4 @ 1 46546xW%0l 1 5 Sec- WebSocket-Key2:12998 5 Y3 1.P00 ^ n:ds [4U
|
protected abstract FullHttpRequest |
WebSocketClientHandshaker.newHandshakeRequest()
返回将用于握手的新的{@link FullHttpRequest)。
|
Modifier and Type | Method and Description |
---|---|
ChannelFuture |
WebSocketServerHandshaker.handshake(Channel channel, FullHttpRequest req)
执行开始握手。
|
ChannelFuture |
WebSocketServerHandshaker.handshake(Channel channel, FullHttpRequest req, HttpHeaders responseHeaders, ChannelPromise promise)
执行打开握手当调用此方法必须不保留 FullHttpRequest 这是在过去。
|
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 |
---|---|
static FullHttpRequest |
HttpConversionUtil.toFullHttpRequest(int streamId, Http2Headers http2Headers, ByteBufAllocator alloc, boolean validateHttpHeaders)
创建一个新的对象来包含请求数据
|
Modifier and Type | Method and Description |
---|---|
boolean |
Http2ServerUpgradeCodec.prepareUpgradeResponse(ChannelHandlerContext ctx, FullHttpRequest upgradeRequest, HttpHeaders headers) |
void |
Http2ServerUpgradeCodec.upgradeTo(ChannelHandlerContext ctx, FullHttpRequest upgradeRequest) |
Copyright © 2008–2018 The Netty Project. All rights reserved.