is there any way to call `HttpResponse.readText` t...
# ktor
e
is there any way to call
HttpResponse.readText
twice on ktor client? I need to read response body in interceptor for logging
d
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
figured out. I guess
HttpPlainText
feature doing what I need, just recreate
HttpResponseContainer
with responseBody
👍 1
d
Sorry, I didn’t read the client part and thought it was the server 🙂