serebit
01/01/2019, 8:47 PMdiesieben07
01/01/2019, 10:51 PMclient being any io.ktor.client.HttpClient, the following should do it:
FileChannel.open(<path>, StandardOpenOption.WRITE).use { fc ->
client.call { ... }.response.content.copyTo(fc)
}