@Internal
@ChannelHandler.Sharable
public class HttpResponseEncoder
extends io.netty.handler.codec.MessageToMessageEncoder<io.micronaut.http.MutableHttpResponse<?>>
MutableHttpResponse.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID |
| Constructor and Description |
|---|
HttpResponseEncoder(io.micronaut.http.codec.MediaTypeCodecRegistry mediaTypeCodecRegistry,
io.micronaut.http.server.HttpServerConfiguration serverConfiguration)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext context,
io.micronaut.http.MutableHttpResponse<?> response,
java.util.List<java.lang.Object> out) |
acceptOutboundMessage, writebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharablepublic static final java.lang.String ID
public HttpResponseEncoder(io.micronaut.http.codec.MediaTypeCodecRegistry mediaTypeCodecRegistry,
io.micronaut.http.server.HttpServerConfiguration serverConfiguration)
mediaTypeCodecRegistry - The media type registryserverConfiguration - The server config