code: private void endWithMessage(ServerHttpExchange http, ByteBuffer data) {
        endedWithMessage.set(true);
        http.setHeader("content-type", "application/octet-stream").end(data);
      }
docs: Regard it as http.endWithMessage