All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlin-server.libraries.ktor._response.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
val exampleContentType = "{{{contentType}}}"
val exampleContentString = """{{&example}}"""

when(exampleContentType) {
    "application/json" -> call.respond(gson.fromJson(exampleContentString, empty::class.java))
    "application/xml" -> call.respondText(exampleContentString, ContentType.Text.Xml)
    else -> call.respondText(exampleContentString)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy