Ktor http client - request progress
问题 How do I monitor request progress in Ktor http client? For example: I have request like this: val response = HttpClient().get<String>("https://stackoverflow.com/") and I want to monitor request progress with progress bar like this: fun progress(downloaded: Long, contentLength: Long) { // Update progress bar or whatever } How do I set progress() to be called by HttpClient? edit: This is Kotlin Multiplatform project. Relevant dependencies are: implementation 'io.ktor:ktor-client-core:1.2.5'