Maybe better would be to pass in Unpooled.buffer() as otherwise you will not be able to write to the content later if needed.