Package io.micronaut.http.netty.body
Interface NettyWriteContext
- All Known Subinterfaces:
OutboundAccess
- All Known Implementing Classes:
PipeliningServerHandler.OutboundAccessImpl
This interface is used to write the different kinds of netty responses.
- Since:
- 4.0.0
-
Method Summary
-
Method Details
-
write
void write(@NonNull @NonNull io.netty.handler.codec.http.HttpResponse response, @NonNull @NonNull ByteBody body) Write a response.- Parameters:
response
- The response status, headers etcbody
- The response body
-
writeHeadResponse
Write a response to aHEAD
request. This is special because it never has a body but may still have a non-zeroContent-Length
header.- Parameters:
response
- The response status, headers etc
-