rusmonster
06/03/2021, 11:30 AMI assume currently it exists but I don't know how to do it, can somebody help me please 🙂 ?Also the following doesn't work (unresolved reference eventListener)
val retMessage = httpClient.request<Message> {
eventListener = { event ->
println("${event.bytesSent / event.bytesTotal}% uploaded")
}
}
So is there any support for progress observer introduced in 1.6.0 or not?Rustam Siniukov
06/03/2021, 12:08 PMval response: HttpResponse = client.get("<http://localhost:8080/products>") {
onDownload { bytesSendTotal: Long, contentLength: Long -> TODO("update UI") }
onUpload { bytesSendTotal: Long, contentLength: Long -> TODO("update UI") }
}
is the API you are looking for