https://kotlinlang.org logo
#ktor
Title
# ktor
e

Elka

11/02/2020, 5:52 PM
Hello, Using the Ktor HttpClient on Android and iOS. I need to do some kind of json validation for authorization purposes… I am trying to create a
Feature
that parses the json, does the checking and then proceed with the response… The problem is that I cannot call
readBytes
twice. The second time it’s empty as the response has already been consumed when doing the validation. Is there any way to do it?
d

dm6801

11/02/2020, 9:13 PM
e

Elka

11/03/2020, 4:15 AM
This is server side only