Hello! Is there any way to debug the ktor client c...
# ktor
s
Hello! Is there any way to debug the ktor client calls?
👍 1
d
What kind of debugging do you need?
Depending on what you need, maybe MockEngine would work
s
Only need to print the http request code completely
But I've already found the issue 🙂
d
you can create a MockEngine that redirects to another HttpClient and prints request and response. But no builtin functionality afaik
c
mock engine is only available on jvm, so no way to do something for ios?
d
MockEngine is < 100 LoC. I guess for now you can just copy them to your own common code
Eventually that will go to common code probably and will be supported on all the targets
c
hadn't checked it, thanks!