软件包 | 描述 |
---|---|
io.netty.handler.codec.http |
编码器,解码器及其相关的HTTP消息类型。
|
io.netty.handler.codec.http2 |
用于发送和接收HTTP / 2帧的处理程序。
|
io.netty.handler.codec.spdy |
SPDY协议的编码器,解码器,会话处理程序及其相关的消息类型。
|
Modifier and Type | Interface and Description |
---|---|
interface |
FullHttpRequest
合并 HttpRequest 和FullHttpMessage ,所以请求是一个完整的 HTTP请求。
|
interface |
FullHttpResponse
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultFullHttpRequest
默认实现 FullHttpRequest 。
|
class |
DefaultFullHttpResponse
FullHttpResponse 的默认实现。
|
Modifier and Type | Method and Description |
---|---|
protected FullHttpMessage |
HttpObjectAggregator.beginAggregation(HttpMessage start, ByteBuf content) |
FullHttpMessage |
FullHttpMessage.copy() |
FullHttpMessage |
FullHttpMessage.duplicate() |
FullHttpMessage |
FullHttpMessage.replace(ByteBuf content) |
FullHttpMessage |
FullHttpMessage.retain() |
FullHttpMessage |
FullHttpMessage.retain(int increment) |
FullHttpMessage |
FullHttpMessage.retainedDuplicate() |
FullHttpMessage |
FullHttpMessage.touch() |
FullHttpMessage |
FullHttpMessage.touch(java.lang.Object hint) |
Modifier and Type | Method and Description |
---|---|
protected void |
HttpObjectAggregator.aggregate(FullHttpMessage aggregated, HttpContent content) |
protected void |
HttpObjectAggregator.finishAggregation(FullHttpMessage aggregated) |
Modifier and Type | Method and Description |
---|---|
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.getMessage(Http2Stream stream)
获取与stream关联的 stream 。
|
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.newMessage(Http2Stream stream, Http2Headers headers, boolean validateHttpHeaders, ByteBufAllocator alloc)
根据当前连接参数创建一个新的 FullHttpMessage
|
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.processHeadersBegin(ChannelHandlerContext ctx, Http2Stream stream, Http2Headers headers, boolean endOfStream, boolean allowAppend, boolean appendToTrailer)
提供HTTP / 2和HTTP头对象之间的转换,同时确保流处于额外头的有效状态。
|
Modifier and Type | Method and Description |
---|---|
static void |
HttpConversionUtil.addHttp2ToHttpHeaders(int streamId, Http2Headers sourceHeaders, FullHttpMessage destinationMessage, boolean addToTrailer)
将HTTP / 2标头翻译并添加到HTTP / 1.x标头。
|
protected void |
InboundHttp2ToHttpAdapter.fireChannelRead(ChannelHandlerContext ctx, FullHttpMessage msg, boolean release, Http2Stream stream)
设置最终标题并启动频道阅读事件
|
protected void |
InboundHttp2ToHttpAdapter.onRstStreamRead(Http2Stream stream, FullHttpMessage msg)
如果收到
RST_STREAM 则调用,但我们有该流的一些数据。
|
protected void |
InboundHttp2ToHttpAdapter.putMessage(Http2Stream stream, FullHttpMessage message)
使
message 成为与
stream 相关的州。
|
Modifier and Type | Method and Description |
---|---|
protected FullHttpMessage |
SpdyHttpDecoder.getMessage(int streamId) |
protected FullHttpMessage |
SpdyHttpDecoder.putMessage(int streamId, FullHttpMessage message) |
protected FullHttpMessage |
SpdyHttpDecoder.removeMessage(int streamId) |
Modifier and Type | Method and Description |
---|---|
protected FullHttpMessage |
SpdyHttpDecoder.putMessage(int streamId, FullHttpMessage message) |
Constructor and Description |
---|
SpdyHttpDecoder(SpdyVersion version, int maxContentLength, java.util.Map<java.lang.Integer,FullHttpMessage> messageMap)
用指定的参数创建一个新的实例。
|
SpdyHttpDecoder(SpdyVersion version, int maxContentLength, java.util.Map<java.lang.Integer,FullHttpMessage> messageMap, boolean validateHeaders)
用指定的参数创建一个新的实例。
|
Copyright © 2008–2018 The Netty Project. All rights reserved.