Params
data class Params(val url: String, val headers: Map<String, String>?, val timeouts: TimeoutsSchema? = null, val body: Any?, val httpMethod: HttpMethod, val onProgress: suspend (Float) -> Unit = {}, val onDownloadFinished: suspend (ByteArray) -> Unit = {}, val onDownloadFailure: suspend (Throwable) -> Unit = {})
Properties
Link copied to clipboard
HTTP method.
Link copied to clipboard
called if the download fails, with the causing throwable.
Link copied to clipboard
called once the download completes, with the full content.
Link copied to clipboard
called repeatedly with download progress (0f–1f).
Link copied to clipboard
request, connect and socket timeout overrides.