jkbbwr
cy
fun Application.main() { install(CallLogging) routing { get("/") { call.respondText("""Hello, world!<br><a href="/bye">Say bye?</a>""", ContentType.Text.Html) } get("/bye") { call.respondText("""Good bye!""", ContentType.Text.Html) } } } fun Http(host: String, port: Int) = embeddedServer(Netty, host = host, port = port, module=Application::main) `
SendChannel<Any>
channel.send("test")
val facade = startEventConsumer(this)
install(MyEventBus)
application.feature(MyEventBus)
fun Http(host: String, port: Int) = embeddedServer(Netty, host = host, port = port) { install(CallLogging) routing { get("/") { call.respondText("""Hello, world!<br><a href="/bye">Say bye?</a>""", ContentType.Text.Html) } get("/bye") { call.respondText("""Good bye!""", ContentType.Text.Html) } } }
A modern programming language that makes developers happier.