orangy
fun main(args: Array<String>) {
val hostConfig = applicationHostConfig {
connector {
this.port = 8080
this.host = "0.0.0.0"
}
}
val environment = applicationEnvironment {}
val server = embeddedJettyServer(hostConfig, environment, Application(environment, Unit).apply {
intercept(ApplicationCallPipeline.Call) {
if (call.request.path() == "/")
call.respondText(ContentType.Text.Plain, "Hello, world!")
}
})
server.start(true)
}
For me numbers are the same.