When I intercept ApplicationCallPipeline.Fallback,...
# ktor
When I intercept ApplicationCallPipeline.Fallback, I cannot access the response message of my response, only the status, any reason why?
all I wanted to do is to make an interceptor which checks if bad responses has any message and if they don't just put the standard response message provided by the httpcode description
The body channel can only be consumed once, if it has already been consumed (for example if the transformation of the body fails, then you have already read it) then it’s no longer there. I don’t use that fallback phase so I’m not sure, but that would be my guess
I am talking about the response
so when I respond(), that is not buffered somewhere for later phases to inspect? Does it get written immediately to output socket?