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

aleksey.tomin

05/29/2020, 5:39 AM
Hello How I can call ktor-client/curl (1.3.2) post in kotlin-native (1.3.72) with coroutine(1.3.6)? This can produce an error https://github.com/ktorio/ktor/issues/1538
Copy code
val result = runBlocking {
    <http://client.post|client.post><String>(url) {
        contentType(ContentType.Application.Json)
        body = json
    }
}
5 Views