twice on ktor client? I need to read response body in interceptor for logging
d
Deactivated User
09/01/2018, 4:25 PM
No directly, as far as I’m concerned. But I guess you can create an Attribute and a suspend extension method, that reads the text if the attribute is not set, and set it just like a lazy suspend getter
e
enleur
09/01/2018, 4:32 PM
figured out. I guess
HttpPlainText
feature doing what I need, just recreate
HttpResponseContainer
with responseBody
👍 1
d
Deactivated User
09/01/2018, 5:57 PM
Sorry, I didn’t read the client part and thought it was the server 🙂