bjonnh
05/09/2019, 4:14 PMDominaezzz
05/09/2019, 5:13 PMPaulius Ruminas
05/09/2019, 5:57 PMbjonnh
05/09/2019, 6:02 PMbjonnh
05/09/2019, 6:13 PMbjonnh
05/09/2019, 6:14 PMval foo = fun PipelineContext<Unit, ApplicationCall>.(it: Unit) {
val query = call.receiveParameters()["query"]
val content = "test"
call.respondText(
content
, ContentType.Text.Plain
)
}
bjonnh
05/09/2019, 6:29 PMsuspend fun request(ctx: PipelineContext<Unit, ApplicationCall>) {
val query = ctx.call.receiveParameters()["query"] …}
post("/") { request(this) }
bjonnh
05/09/2019, 6:30 PM