Join Slack
Communities
Powered by
you can return a `Unit`, no problem. E.g. this is ...
# ktor
o
orangy
01/07/2018, 1:37 AM
you can return a
Unit
, no problem. E.g. this is a common pattern:
Copy code
val query = call.parameters["q"] ?: return@get call.respond(HttpStatusCode.BadRequest)
Open in Slack
Previous
Next