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 Details

    • attachment

      public void attachment(Object attachment)
      Set an attachment that is passed to RequestHandler.responseWritten(java.lang.Object). Defaults to null.
      Specified by:
      attachment in interface OutboundAccess
      Parameters:
      attachment - The attachment to forward
    • closeAfterWrite

      public void closeAfterWrite()
      Mark this channel to be closed after this response has been written.
      Specified by:
      closeAfterWrite in interface OutboundAccess
    • writeHeadResponse

      public void writeHeadResponse(@NonNull @NonNull io.netty.handler.codec.http.HttpResponse response)
      Specified by:
      writeHeadResponse in interface io.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:
      write in interface io.micronaut.http.netty.body.NettyWriteContext