jh
02/13/2020, 9:49 AMResponse(OK).body(tempFile.inputStream())
Is there any way to detect when the response has been fully read so that we can then delete the temp file on disk?dave
02/13/2020, 8:20 PMdave
02/13/2020, 8:20 PMtaer
02/13/2020, 9:55 PMval f = File("/tmp/test")
val inputStream = f.inputStream()
f.delete()
inputStream.reader().forEachLine {
Thread.sleep(500)
println(it)
}
inputStream.close()
taer
02/13/2020, 9:56 PMtaer
02/13/2020, 9:56 PMseq 1 100 > /tmp/test
taer
02/13/2020, 9:56 PMjh
02/14/2020, 10:37 AM