Join Slack
Hello, Using the Ktor HttpClient on Android and iOS. I need to do some kind of json validation for ...
# 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
might want to try this:
https://ktor.io/docs/double-receive.html
e
Elka
11/03/2020, 4:15 AM
This is server side only
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by