FileDownload

class FileDownload(val savePath: String)

Class to save an Http response into a local file

Constructors

Link copied to clipboard
fun FileDownload(savePath: String)

Functions

Link copied to clipboard
fun stream(channel: ByteReadChannel)

Reads a stream and saves it into a local file

Properties

Link copied to clipboard
val savePath: String

Path to save the Http response