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 TypeMethodDescriptionvoidattachment(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 io.micronaut.http.netty.body.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.
-