otsuka
04/02/2019, 2:38 AMByteReadChannel
. Is there an example code which writes contents to a file from ByteReadChannel
?
https://ktor.io/clients/http-client/calls/responses.html#HttpResponsegildor
04/02/2019, 2:42 AMotsuka
04/02/2019, 2:50 AMcall.response.content.copyAndClose(file.writeChannel())
This one line is really helpful to me.