code: public void close(Handler<AsyncResult<Void>> completion) {
          if (context == null) {
              context = vertx.getOrCreateContext();
          }
  
          context.runOnContext(v -> {
              if (http != null) {
                  http.close(event -> {
                      logger.info("The server '{}' has been stopped (bound port: {})", name, port);
                      completion.handle(Future.<Void>succeededFuture());
                  });
              }
          });
      }
docs: Stops / Closes the server.