Joey
Aleksei Tirman [JB]
import io.ktor.client.* import io.ktor.client.engine.apache.* import io.ktor.client.features.cache.* import io.ktor.client.request.* import io.ktor.util.cio.* import java.io.File suspend fun main() { val client = HttpClient(Apache) { install(HttpCache) } val file = File("/path/to/file") val r = <http://client.post|client.post><String>("<https://httpbin.org/post>") { body = file.readChannel() } println(r) }
A modern programming language that makes developers happier.