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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidattachment(Object attachment) Set an attachment that is passed toRequestHandler.responseWritten(java.lang.Object).voidMark this channel to be closed after this response has been written.voidwrite(@NonNull io.netty.handler.codec.http.HttpResponse response, @NonNull io.micronaut.http.body.ByteBody body) voidwriteHeadResponse(@NonNull io.netty.handler.codec.http.HttpResponse response)
-
Method Details
-
attachment
Set an attachment that is passed toRequestHandler.responseWritten(java.lang.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(@NonNull @NonNull io.netty.handler.codec.http.HttpResponse response) - Specified by:
writeHeadResponsein interfaceio.micronaut.http.netty.body.NettyWriteContext
-
write
public void write(@NonNull @NonNull io.netty.handler.codec.http.HttpResponse response, @NonNull @NonNull io.micronaut.http.body.ByteBody body) - Specified by:
writein interfaceio.micronaut.http.netty.body.NettyWriteContext
-