Class PipeliningServerHandler.OutboundAccessImpl

java.lang.Object
io.micronaut.http.server.netty.handler.PipeliningServerHandler.OutboundAccessImpl
All Implemented Interfaces:
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 io.netty.handler.codec.http.HttpResponse response)
      Description copied from interface: NettyWriteContext
      Write a response to a HEAD request. This is special because it never has a body but may still have a non-zero Content-Length header.
      Specified by:
      writeHeadResponse in interface NettyWriteContext
      Parameters:
      response - The response status, headers etc
    • write

      public void write(@NonNull io.netty.handler.codec.http.HttpResponse response, @NonNull ByteBody body)
      Description copied from interface: NettyWriteContext
      Write a response.
      Specified by:
      write in interface NettyWriteContext
      Parameters:
      response - The response status, headers etc
      body - The response body