Top Constructors Methods
reactor.netty5.http.server

pack-priv final Class SimpleCompressionHandler

extends HttpContentCompressor
Class Inheritance
Imports
io.netty5.buffer.Buffer, io.netty5.channel.ChannelHandlerContext, io.netty5.handler.codec.http.DefaultHttpContent, .DefaultHttpRequest, .FullHttpRequest, .HttpContentCompressor, .HttpRequest, io.netty5.util.concurrent.Future

Author
Stephane Maldini

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
decode(ChannelHandlerContext ctx, HttpRequest msg, boolean release)

protected void
public Future<Void>
write(ChannelHandlerContext
the ChannelHandlerContext for which the write operation is made
ctx
,
Object
the message to write
msg
)

Overrides io.netty5.handler.codec.MessageToMessageCodec.write.

Overrides default io.netty5.channel.ChannelHandler.write.

Called once a write operation is made.
Inherited from io.netty5.handler.codec.http.HttpContentCompressor:
beginEncodedetermineEncodingdetermineWrapper

Constructor Detail

SimpleCompressionHandlerback to summary
pack-priv SimpleCompressionHandler()

Method Detail

decodeback to summary
pack-priv void decode(ChannelHandlerContext ctx, HttpRequest msg, boolean release) throws Exception
decodeAndCloseback to summary
protected void decodeAndClose(ChannelHandlerContext ctx, HttpRequest msg) throws Exception

Overrides io.netty5.handler.codec.http.HttpContentEncoder.decodeAndClose.

Annotations
@Override
writeback to summary
public Future<Void> write(ChannelHandlerContext ctx, Object msg)

Overrides io.netty5.handler.codec.MessageToMessageCodec.write.

Overrides default io.netty5.channel.ChannelHandler.write.

Doc from io.netty5.channel.ChannelHandler.write.

Called once a write operation is made. The write operation will write the messages through the ChannelPipeline. Those are then ready to be flushed to the actual Channel once Channel#flush() is called.

Parameters
ctx:ChannelHandlerContext

the ChannelHandlerContext for which the write operation is made

msg:Object

the message to write

Returns:Future<Void>

the Future which will be notified once the operation completes.

Annotations
@Override