[Ktor server] Hello. Is there any way to read resp...
# ktor
r
[Ktor server] Hello. Is there any way to read response body from Pipline? I am trying to create Feature, which will log all requests and some responses to ElasticSearch. Everything works, but I cannot read response body. Receive is returning empty string. The only way I can do it, is to respond with some body and then save response in call.attributes, which I can read in Pipeline. Pipeline setup look like this:
Copy code
val loggingPhase = PipelinePhase("CallMonitoring")

pipeline.insertPhaseBefore(ApplicationCallPipeline.Monitoring, loggingPhase)

pipeline.intercept(loggingPhase) {
I am sure response is already in call, because I can read status and attributes