Lost Illusion
05/28/2021, 3:01 AMval requests = MutableSharedFlow<PipelineContext<Unit, ApplicationCall>>()
...
routing {
post("/foo") {
requests.emit(this)
}
}
...
requests.collect {
it.call.respondText("bar")
}
I dont think the way I'm imagining it would be possible, simply because of how Pipeline is designed however, is there any other way to achieve a similar idea?