KtorApplicationSettings
class KtorApplicationSettings<TEngine : ApplicationEngine, TConfiguration : ApplicationEngine.Configuration>(val engine: ApplicationEngineFactory<TEngine, TConfiguration>, val port: Int = 80, val host: String = "0.0.0.0", val watchPaths: List<String> = listOf(File(".").canonicalPath), configure: TConfiguration.() -> Unit = {})
Application settings for the Ktor application. Identical to the parameters of the embeddedServer function from Ktor.
Constructors
Link copied to clipboard
fun <TEngine : ApplicationEngine, TConfiguration : ApplicationEngine.Configuration> KtorApplicationSettings(engine: ApplicationEngineFactory<TEngine, TConfiguration>, port: Int = 80, host: String = "0.0.0.0", watchPaths: List<String> = listOf(File(".").canonicalPath), configure: TConfiguration.() -> Unit = {})
Functions
Link copied to clipboard
Equivalent to embeddedServer
but uses this object's information as the parameters.