createKtorServer

fun <TEngine, TConfiguration> createKtorServer(    engine: <ERROR CLASS><TEngine, TConfiguration>,     host: String = "localhost",     port: Int = Random.nextInt(1024, 65535),     additionalEngineEnvironmentConfigurator: <ERROR CLASS>.() -> Unit = {},     additionalConfigurationConfigurator: TConfiguration.() -> Unit = {},     block: <ERROR CLASS>.() -> Unit): TEngine
fun <TEngine, TConfiguration> createKtorServer(    engine: <ERROR CLASS><TEngine, TConfiguration>,     host: String = "localhost",     port: Int = Random.nextInt(1024, 65535),     additionalEngineEnvironmentConfigurator: <ERROR CLASS>.() -> Unit = {},     additionalConfigurationConfigurator: TConfiguration.() -> Unit = {},     configurators: List<KtorApplicationConfigurator>): TEngine


fun createKtorServer(    host: String = "localhost",     port: Int = Random.nextInt(1024, 65535),     additionalEngineEnvironmentConfigurator: <ERROR CLASS>.() -> Unit = {},     additionalConfigurationConfigurator: <ERROR CLASS>.() -> Unit = {},     block: <ERROR CLASS>.() -> Unit): <ERROR CLASS>
fun createKtorServer(    host: String = "localhost",     port: Int = Random.nextInt(1024, 65535),     configurators: List<KtorApplicationConfigurator>,     additionalEngineEnvironmentConfigurator: <ERROR CLASS>.() -> Unit = {},     additionalConfigurationConfigurator: <ERROR CLASS>.() -> Unit = {}): <ERROR CLASS>

Create server with CIO server engine without starting of it

See also

ApplicationEngine.start