Interface OutboundAccess
- All Superinterfaces:
NettyWriteContext
- All Known Implementing Classes:
PipeliningServerHandler.OutboundAccessImpl
- Since:
- 4.4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidabort()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.voidattachment(Object attachment) Register an attachment that will be passed toRequestHandler.responseWritten(Object).voidClose this HTTP/1.1 connection after this response has been written, e.g.Methods inherited from interface NettyWriteContext
write, writeHeadResponse
-
Method Details
-
attachment
Register an attachment that will be passed toRequestHandler.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
-