When I intercept ApplicationCallPipeline.Fallback, I cannot access the response message of my response, only the status, any reason why?
coder82
08/28/2019, 8:36 AM
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
r
ribesg
08/28/2019, 9:37 AM
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
c
coder82
08/28/2019, 5:18 PM
I am talking about the response
coder82
08/28/2019, 5:18 PM
so when I respond(), that is not buffered somewhere for later phases to inspect? Does it get written immediately to output socket?