Join Slack
Powered by
has anyone figure out a nice way to read the reque...
# ktor
t
tw
11/07/2018, 11:11 AM
has anyone figure out a nice way to read the request body more than once in ktor - for example, for logging purposes?
e
enleur
11/07/2018, 12:25 PM
you can intercept a request and replace incoming content with a container like this
https://github.com/ktorio/ktor/blob/master/ktor-client/ktor-client-core/src/io/ktor/client/features/HttpPlainText.kt#L41
t
tw
11/07/2018, 2:55 PM
@enleur
thanks for that - I’ll give that a go 🙂
6
Views
Open in Slack
Previous
Next