/** * Called if a {@code RST_STREAM} is received but we have some data for that stream. */ protected void onRstStreamRead(Http2Stream stream, FullHttpMessage msg) { removeMessage(stream, true); }
@Override public void onStreamRemoved(Http2Stream stream) { removeMessage(stream, true); }
/** * Set final headers and fire a channel read event * * @param ctx The context to fire the event on * @param msg The message to send * @param release {@code true} to call release on the value if it is present. {@code false} to not call release. * @param stream the stream of the message which is being fired */ protected void fireChannelRead(ChannelHandlerContext ctx, FullHttpMessage msg, boolean release, Http2Stream stream) { removeMessage(stream, release); HttpUtil.setContentLength(msg, msg.content().readableBytes()); ctx.fireChannelRead(msg); }
/** * Called if a {@code RST_STREAM} is received but we have some data for that stream. */ protected void onRstStreamRead(Http2Stream stream, FullHttpMessage msg) { removeMessage(stream, true); }
/** * Called if a {@code RST_STREAM} is received but we have some data for that stream. */ protected void onRstStreamRead(Http2Stream stream, FullHttpMessage msg) { removeMessage(stream, true); }
@Override public void onStreamRemoved(Http2Stream stream) { removeMessage(stream, true); }
@Override public void onStreamRemoved(Http2Stream stream) { removeMessage(stream, true); }
/** * Set final headers and fire a channel read event * * @param ctx The context to fire the event on * @param msg The message to send * @param release {@code true} to call release on the value if it is present. {@code false} to not call release. * @param stream the stream of the message which is being fired */ protected void fireChannelRead(ChannelHandlerContext ctx, FullHttpMessage msg, boolean release, Http2Stream stream) { removeMessage(stream, release); HttpUtil.setContentLength(msg, msg.content().readableBytes()); ctx.fireChannelRead(msg); }
/** * Set final headers and fire a channel read event * * @param ctx The context to fire the event on * @param msg The message to send * @param release {@code true} to call release on the value if it is present. {@code false} to not call release. * @param stream the stream of the message which is being fired */ protected void fireChannelRead(ChannelHandlerContext ctx, FullHttpMessage msg, boolean release, Http2Stream stream) { removeMessage(stream, release); HttpUtil.setContentLength(msg, msg.content().readableBytes()); ctx.fireChannelRead(msg); }