public final class Http2ObjectEncoder extends HttpObjectEncoder
| Constructor and Description |
|---|
Http2ObjectEncoder(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2ConnectionEncoder encoder) |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.channel.Channel |
channel() |
protected void |
doClose() |
protected io.netty.channel.ChannelFuture |
doWriteData(int id,
int streamId,
HttpData data,
boolean endStream) |
protected io.netty.channel.ChannelFuture |
doWriteHeaders(int id,
int streamId,
HttpHeaders headers,
boolean endStream) |
protected io.netty.channel.ChannelFuture |
doWriteReset(int id,
int streamId,
io.netty.handler.codec.http2.Http2Error error) |
boolean |
isWritable(int id,
int streamId)
Returns
true if the specified id and streamId is writable. |
close, eventLoop, newClosedSessionFuture, newFailedFuture, toByteBuf, writeData, writeHeaders, writeResetpublic Http2ObjectEncoder(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2ConnectionEncoder encoder)
protected io.netty.channel.Channel channel()
channel in class HttpObjectEncoderprotected io.netty.channel.ChannelFuture doWriteHeaders(int id,
int streamId,
HttpHeaders headers,
boolean endStream)
doWriteHeaders in class HttpObjectEncoderprotected io.netty.channel.ChannelFuture doWriteData(int id,
int streamId,
HttpData data,
boolean endStream)
doWriteData in class HttpObjectEncoderprotected io.netty.channel.ChannelFuture doWriteReset(int id,
int streamId,
io.netty.handler.codec.http2.Http2Error error)
doWriteReset in class HttpObjectEncoderpublic boolean isWritable(int id,
int streamId)
HttpObjectEncodertrue if the specified id and streamId is writable.isWritable in class HttpObjectEncoderprotected void doClose()
doClose in class HttpObjectEncoderCopyright © 2020 LeanCloud. All rights reserved.