I have some code that works just fine for the JVM but would be better implemented as common code via Ktor. After a day or so reading sample code and browsing APIs, I cannot see an easy way to do it. The code follows. Am I missing something that should be apparent?