open fun listen(): HttpServer
Tell the server to start listening. The server will listen on the port and host specified in the io.vertx.core.http.HttpServerOptions that was used when creating the server.
The listen happens asynchronously and the server may not be listening until some time after the call has returned.
Return
a reference to this, so the API can be used fluently
open fun listen(port: Int, host: String): HttpServer
Tell the server to start listening. The server will listen on the port and host specified here, ignoring any value set in the io.vertx.core.http.HttpServerOptions that was used when creating the server.
The listen happens asynchronously and the server may not be listening until some time after the call has returned.
Return
a reference to this, so the API can be used fluently
open fun listen(port: Int, host: String, listenHandler: Handler<AsyncResult<HttpServer>>): HttpServer
Like io.vertx.reactivex.core.http.HttpServer#listen but supplying a handler that will be called when the server is actually listening (or has failed).
listenHandler - the listen handler
Return
open fun listen(port: Int): HttpServer
Like io.vertx.reactivex.core.http.HttpServer#listen but the server will listen on host "0.0.0.0" and port specified here ignoring any value in the io.vertx.core.http.HttpServerOptions that was used when creating the server.
Return
a reference to this, so the API can be used fluently
open fun listen(port: Int, listenHandler: Handler<AsyncResult<HttpServer>>): HttpServer
Like io.vertx.reactivex.core.http.HttpServer#listen but supplying a handler that will be called when the server is actually listening (or has failed).
listenHandler - the listen handler
Return
open fun listen(listenHandler: Handler<AsyncResult<HttpServer>>): HttpServer
Like io.vertx.reactivex.core.http.HttpServer#listen but supplying a handler that will be called when the server is actually listening (or has failed).
listenHandler - the listen handler
Return