Interface OutboundAccess

All Superinterfaces:
NettyWriteContext
All Known Implementing Classes:
PipeliningServerHandler.OutboundAccessImpl

@Internal public interface OutboundAccess extends NettyWriteContext
Since:
4.4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Give up on the response of this request, after writing it failed in a way that may have left a part of it on the connection, so that no other response can be written in its place: HTTP/1.1 closes the connection, HTTP/2 resets the stream.
    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 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.
    • abort

      void abort()
      Give up on the response of this request, after writing it failed in a way that may have left a part of it on the connection, so that no other response can be written in its place: HTTP/1.1 closes the connection, HTTP/2 resets the stream. Does nothing if the response was written completely.
      Since:
      5.2.16