lenqnr
<http://client.post|client.post><String>("/path", "hello")
println(call.receiveText()) // Result: "hello"
cy
e5l
fun main() = runBlocking { val httpClient = HttpClient(CIO) { install(JsonFeature) { serializer = GsonSerializer() } } <http://httpClient.post|httpClient.post><Unit> { url("<http://localhost:8080>") contentType(ContentType.Application.Json) body = "hello" } }
post
body
contentType
A modern programming language that makes developers happier.