软件包 | 描述 |
---|---|
io.netty.handler.codec.http2 |
用于发送和接收HTTP / 2帧的处理程序。
|
Modifier and Type | Field and Description |
---|---|
protected Http2Stream |
DefaultHttp2ConnectionEncoder.FlowControlledBase.stream |
Modifier and Type | Method and Description |
---|---|
Http2Stream |
Http2Stream.close()
关闭流。
|
Http2Stream |
Http2Stream.closeLocalSide()
关闭此流的本地端。
|
Http2Stream |
Http2Stream.closeRemoteSide()
关闭此流的远程端。
|
Http2Stream |
Http2Connection.connectionStream()
获取表示连接本身的流对象(即流零)。
|
Http2Stream |
DefaultHttp2Connection.connectionStream() |
Http2Stream |
Http2Connection.Endpoint.createStream(int streamId, boolean halfClosed)
创建由此端点启动的流。
|
Http2Stream |
Http2Connection.forEachActiveStream(Http2StreamVisitor visitor)
提供一种迭代活动流集合的方法。
|
Http2Stream |
DefaultHttp2Connection.forEachActiveStream(Http2StreamVisitor visitor) |
Http2Stream |
Http2Stream.headersReceived(boolean isInformational)
表示已收到标题。
|
Http2Stream |
Http2Stream.headersSent(boolean isInformational)
表示头已经发送到此流上的远程端点。
|
Http2Stream |
Http2Stream.open(boolean halfClosed)
打开此流,使其可通过
Http2Connection.forEachActiveStream(Http2StreamVisitor) 和过渡状态可用:
Http2Stream.State.OPEN 如果
state() 是
Http2Stream.State.IDLE 和
halfClosed 是
false 。
|
Http2Stream |
Http2Stream.pushPromiseSent()
表示推送承诺已发送到远程端点。
|
Http2Stream |
Http2Connection.Endpoint.reservePushStream(int streamId, Http2Stream parent)
在此端点的保留状态中创建推送流并通知所有监听者。
|
Http2Stream |
Http2Stream.resetSent()
设置标志,指示已经从本地端点为此流发送了
RST_STREAM 帧。
|
Http2Stream |
StreamByteDistributor.StreamState.stream()
获取这个状态关联的流。
|
Http2Stream |
Http2Connection.stream(int streamId)
获取流如果存在。
|
Http2Stream |
DefaultHttp2Connection.stream(int streamId) |
Modifier and Type | Method and Description |
---|---|
void |
Http2RemoteFlowController.addFlowControlled(Http2Stream stream, Http2RemoteFlowController.FlowControlled payload)
排队有效载荷以传输到远程端点。
|
void |
DefaultHttp2RemoteFlowController.addFlowControlled(Http2Stream stream, Http2RemoteFlowController.FlowControlled frame) |
void |
Http2LifecycleManager.closeStream(Http2Stream stream, ChannelFuture future)
关闭并停用给定的
stream 。
|
void |
Http2ConnectionHandler.closeStream(Http2Stream stream, ChannelFuture future) |
void |
Http2LifecycleManager.closeStreamLocal(Http2Stream stream, ChannelFuture future)
关闭
stream 的本地端。
|
void |
Http2ConnectionHandler.closeStreamLocal(Http2Stream stream, ChannelFuture future)
关闭给定流的本地侧。
|
void |
Http2LifecycleManager.closeStreamRemote(Http2Stream stream, ChannelFuture future)
关闭
stream 的远程端。
|
void |
Http2ConnectionHandler.closeStreamRemote(Http2Stream stream, ChannelFuture future)
关闭给定流的远程端。
|
boolean |
Http2LocalFlowController.consumeBytes(Http2Stream stream, int numBytes)
表示应用程序已经为给定流消耗了大量字节,因此准备从远程端点接收更多数据。
|
boolean |
DefaultHttp2LocalFlowController.consumeBytes(Http2Stream stream, int numBytes) |
boolean |
Http2Connection.Endpoint.created(Http2Stream stream)
指示此端点是否创建了给定的流。
|
protected void |
InboundHttp2ToHttpAdapter.fireChannelRead(ChannelHandlerContext ctx, FullHttpMessage msg, boolean release, Http2Stream stream)
设置最终标题并启动频道阅读事件
|
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.getMessage(Http2Stream stream)
获取与stream相关联的 stream 。
|
protected void |
Http2ConnectionHandler.handleServerHeaderDecodeSizeError(ChannelHandlerContext ctx, Http2Stream stream)
通知客户端此服务器已收到比它愿意接受的头大的头。
|
boolean |
Http2RemoteFlowController.hasFlowControlled(Http2Stream stream)
确定 stream 是否有任何Http2RemoteFlowController.FlowControlled 当前排队的帧。
|
boolean |
DefaultHttp2RemoteFlowController.hasFlowControlled(Http2Stream stream) |
void |
Http2FlowController.incrementWindowSize(Http2Stream stream, int delta)
按给定的增量增加流的流量控制窗口的大小。
|
void |
DefaultHttp2RemoteFlowController.incrementWindowSize(Http2Stream stream, int delta) |
void |
DefaultHttp2LocalFlowController.incrementWindowSize(Http2Stream stream, int delta) |
int |
Http2LocalFlowController.initialWindowSize(Http2Stream stream)
获取给定流的初始流量控制窗口大小。
|
int |
DefaultHttp2LocalFlowController.initialWindowSize(Http2Stream stream) |
boolean |
Http2RemoteFlowController.isWritable(Http2Stream stream)
确定
stream 是否剩余字节用于流量控制窗口。
|
boolean |
DefaultHttp2RemoteFlowController.isWritable(Http2Stream stream) |
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.newMessage(Http2Stream stream, Http2Headers headers, boolean validateHttpHeaders, ByteBufAllocator alloc)
根据当前连接参数创建一个新的 FullHttpMessage
|
protected void |
InboundHttp2ToHttpAdapter.onRstStreamRead(Http2Stream stream, FullHttpMessage msg)
如果收到
RST_STREAM 则调用,但我们有该流的一些数据。
|
void |
Http2EventAdapter.onStreamActive(Http2Stream stream) |
void |
Http2ConnectionAdapter.onStreamActive(Http2Stream stream) |
void |
Http2Connection.Listener.onStreamActive(Http2Stream stream)
通知监听器给定的流是活动的(即
|
void |
Http2EventAdapter.onStreamAdded(Http2Stream stream) |
void |
Http2ConnectionAdapter.onStreamAdded(Http2Stream stream) |
void |
Http2Connection.Listener.onStreamAdded(Http2Stream stream)
通知侦听器给定的流已添加到连接。
|
void |
Http2EventAdapter.onStreamClosed(Http2Stream stream) |
void |
Http2ConnectionAdapter.onStreamClosed(Http2Stream stream) |
void |
Http2Connection.Listener.onStreamClosed(Http2Stream stream)
通知聆听者现在
CLOSED 的指定流,将不再可通过
Http2Connection.forEachActiveStream(Http2StreamVisitor) 访问。
|
void |
Http2EventAdapter.onStreamHalfClosed(Http2Stream stream) |
void |
Http2ConnectionAdapter.onStreamHalfClosed(Http2Stream stream) |
void |
Http2Connection.Listener.onStreamHalfClosed(Http2Stream stream)
通知监听器给定的流已经从
OPEN 转换为
HALF CLOSED 。
|
void |
InboundHttp2ToHttpAdapter.onStreamRemoved(Http2Stream stream) |
void |
Http2EventAdapter.onStreamRemoved(Http2Stream stream) |
void |
Http2ConnectionAdapter.onStreamRemoved(Http2Stream stream) |
void |
Http2Connection.Listener.onStreamRemoved(Http2Stream stream)
通知监听者,给定的流现在已经从连接中移除,不再通过
Http2Connection.stream(int) 返回。
|
protected FullHttpMessage |
InboundHttp2ToHttpAdapter.processHeadersBegin(ChannelHandlerContext ctx, Http2Stream stream, Http2Headers headers, boolean endOfStream, boolean allowAppend, boolean appendToTrailer)
提供HTTP / 2和HTTP头对象之间的转换,同时确保流处于额外头的有效状态。
|
protected void |
InboundHttp2ToHttpAdapter.putMessage(Http2Stream stream, FullHttpMessage message)
使
message 成为与
stream 相关的州。
|
void |
Http2LocalFlowController.receiveFlowControlledFrame(Http2Stream stream, ByteBuf data, int padding, boolean endOfStream)
从远程端点
DATA 站
DATA 帧,并为
stream 以及连接应用流量控制策略。
|
void |
DefaultHttp2LocalFlowController.receiveFlowControlledFrame(Http2Stream stream, ByteBuf data, int padding, boolean endOfStream) |
protected void |
InboundHttp2ToHttpAdapter.removeMessage(Http2Stream stream, boolean release)
该流超出了HTTP消息流的范围,将不再被跟踪
|
Http2Stream |
Http2Connection.Endpoint.reservePushStream(int streamId, Http2Stream parent)
在此端点的保留状态中创建推送流并通知所有监听者。
|
int |
Http2LocalFlowController.unconsumedBytes(Http2Stream stream)
已接收但尚未由应用程序使用的给定流的字节数。
|
int |
DefaultHttp2LocalFlowController.unconsumedBytes(Http2Stream stream) |
boolean |
Http2StreamVisitor.visit(Http2Stream stream) |
int |
Http2FlowController.windowSize(Http2Stream stream)
获取当前可用于发送/接收受流控制控制的帧的给定流的流量控制窗口部分。
|
int |
DefaultHttp2RemoteFlowController.windowSize(Http2Stream stream) |
int |
DefaultHttp2LocalFlowController.windowSize(Http2Stream stream) |
float |
DefaultHttp2LocalFlowController.windowUpdateRatio(Http2Stream stream)
窗口更新比率用于确定何时必须发送窗口更新。
|
void |
DefaultHttp2LocalFlowController.windowUpdateRatio(Http2Stream stream, float ratio)
窗口更新比率用于确定何时必须发送窗口更新。
|
void |
Http2RemoteFlowController.Listener.writabilityChanged(Http2Stream stream)
Http2RemoteFlowController.isWritable(Http2Stream) 已更改为
stream 通知。
|
void |
StreamByteDistributor.Writer.write(Http2Stream stream, int numBytes)
为此流写入分配的字节。
|
Copyright © 2008–2018 The Netty Project. All rights reserved.