DownloadFinished

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

Emitted when a download was finished.

Constructors

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

Properties

downloadTime
Link copied to clipboard
val downloadTime: Double
The time needed to finish the request, in seconds.
downloadType
Link copied to clipboard
val downloadType: HttpRequestType
Which type of request this was.
httpStatus
Link copied to clipboard
val httpStatus: Int
The HTTP status code of the request.
isSuccess
Link copied to clipboard
val isSuccess: Boolean
If the download was successful.
lastRedirectLocation
Link copied to clipboard
val lastRedirectLocation: String?
The last redirect location, or null if no redirect happened.
size
Link copied to clipboard
val size: Long
The size of the downloaded data, in bytes.
url
Link copied to clipboard
val url: String
The URL of the request.

Inherited properties

timestamp
Link copied to clipboard
var timestamp: Long
The time at which the event was emitted.