DownloadFinished

data class DownloadFinished(val downloadType: HttpRequestType, val url: String, val lastRedirectLocation: String?, val downloadTime: Double, val httpStatus: Int, val size: Long, val isSuccess: Boolean) : SourceEvent

Emitted when a download was finished.

Constructors

Link copied to clipboard
constructor(downloadType: HttpRequestType, url: String, lastRedirectLocation: String?, downloadTime: Double, httpStatus: Int, size: Long, isSuccess: Boolean)

Properties

Link copied to clipboard

The time needed to finish the request, in seconds.

Link copied to clipboard

Which type of request this was.

Link copied to clipboard

The HTTP status code of the request. If opening the connection failed, a value of 0 is returned.

Link copied to clipboard

If the download was successful.

Link copied to clipboard

The last redirect location, or null if no redirect happened.

Link copied to clipboard
val size: Long

The size of the downloaded data, in bytes.

Link copied to clipboard
val url: String

The URL of the request.