vertx / io.vertx.kotlin.core.http / io.vertx.core.http.HttpServer / listenAwait

listenAwait

suspend fun HttpServer.listenAwait(port: Int, host: String): HttpServer

Like io.vertx.core.http.HttpServer but supplying a handler that will be called when the server is actually listening (or has failed).

Parameters

port - the port to listen on

host - the host to listen on

listenHandler - the listen handler

Return

suspend fun HttpServer.listenAwait(address: SocketAddress): HttpServer

Tell the server to start listening on the given address supplying a handler that will be called when the server is actually listening (or has failed).

Parameters

address - the address to listen on

listenHandler - the listen handler

Return

suspend fun HttpServer.listenAwait(port: Int): HttpServer

Like io.vertx.core.http.HttpServer but supplying a handler that will be called when the server is actually listening (or has failed).

Parameters

port - the port to listen on

listenHandler - the listen handler

Return

suspend fun HttpServer.listenAwait(): HttpServer

Like io.vertx.core.http.HttpServer but supplying a handler that will be called when the server is actually listening (or has failed).

Parameters

listenHandler - the listen handler

Return