Class PipeliningServerHandler.OutboundAccessImpl
java.lang.Object
io.micronaut.http.server.netty.handler.PipeliningServerHandler.OutboundAccessImpl
- All Implemented Interfaces:
io.micronaut.http.netty.body.NettyWriteContext, OutboundAccess
- Enclosing class:
PipeliningServerHandler
public final class PipeliningServerHandler.OutboundAccessImpl
extends Object
implements OutboundAccess
Class that allows writing the response for the request this object is associated with.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidattachment(Object attachment) Set an attachment that is passed toRequestHandler.responseWritten(Object).voidMark this channel to be closed after this response has been written.voidwrite(io.netty.handler.codec.http.HttpResponse response, io.micronaut.http.body.ByteBody body) voidwriteHeadResponse(io.netty.handler.codec.http.HttpResponse response)
-
Method Details
-
attachment
Set an attachment that is passed toRequestHandler.responseWritten(Object). Defaults tonull.- Specified by:
attachmentin interfaceOutboundAccess- Parameters:
attachment- The attachment to forward
-
closeAfterWrite
public void closeAfterWrite()Mark this channel to be closed after this response has been written.- Specified by:
closeAfterWritein interfaceOutboundAccess
-
writeHeadResponse
public void writeHeadResponse(io.netty.handler.codec.http.HttpResponse response) - Specified by:
writeHeadResponsein interfaceio.micronaut.http.netty.body.NettyWriteContext
-
write
public void write(io.netty.handler.codec.http.HttpResponse response, io.micronaut.http.body.ByteBody body) - Specified by:
writein interfaceio.micronaut.http.netty.body.NettyWriteContext
-