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

Elka

11/06/2020, 1:34 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
e

Elka

11/06/2020, 2:00 PM
I tried that but it was a bit hard to rebuild the client call… So I am on the right track
r

ribesg

11/06/2020, 2:17 PM
Look at how the logging feature work
And the auth feature. It builds a new request from the request