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 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()
seq 1 100 > /tmp/test
jh
02/14/2020, 10:37 AM