Interface OutboundAccess

All Superinterfaces:
io.micronaut.http.netty.body.NettyWriteContext
All Known Implementing Classes:
PipeliningServerHandler.OutboundAccessImpl

@Internal public interface OutboundAccess extends io.micronaut.http.netty.body.NettyWriteContext
Since:
4.4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    attachment(Object attachment)
    Register an attachment that will be passed to RequestHandler.responseWritten(Object).
    void
    Close this HTTP/1.1 connection after this response has been written, e.g.

    Methods inherited from interface io.micronaut.http.netty.body.NettyWriteContext

    write, writeHeadResponse
  • Method Details

    • attachment

      void attachment(Object attachment)
      Register an attachment that will be passed to RequestHandler.responseWritten(Object).
      Parameters:
      attachment - The attachment
    • closeAfterWrite

      void closeAfterWrite()
      Close this HTTP/1.1 connection after this response has been written, e.g. when there's an unrecoverable error that may corrupt future requests. This method has no effect on HTTP/2.