I am wondering if reusing DefaultFullHttpResponses is supported.

  private static final DefaultFullHttpResponse NOCONTENT = new 
DefaultFullHttpResponse(HTTP_1_1, NO_CONTENT, false);

The underlying ByteBuf will be Unpooled.buffer(0), so I assume there is no 
problem with automatic reference counting, but I want to make sure I am not 
missing anything.

The use case is to reduce gc pressure when returning frequent no content 
and static answers like no_content or not_found or internal_server_error


You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to netty+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to