LastModifiedVersion

data class LastModifiedVersion(lastModified: GMTDate) : Version

Creates an instance of LastModifiedVersion that passes the given lastModified date through the If-Modified-Since and If-Unmodified-Since conditional headers provided by the client.

For better accuracy, use ETag instead.

Parameters

lastModified

of the current content, for example the file's last modified date

Constructors

Link copied to clipboard
fun LastModifiedVersion(lastModified: GMTDate)

Functions

Link copied to clipboard
open override fun appendHeadersTo(builder: HeadersBuilder)

Appends relevant headers to the builder.

Link copied to clipboard
open override fun check(requestHeaders: Headers): VersionCheckResult
Link copied to clipboard
fun ifModifiedSince(dates: List<GMTDate>): Boolean

If-Modified-Since logic: all dates should be before this date (truncated to seconds).

Link copied to clipboard
fun ifUnmodifiedSince(dates: List<GMTDate>): Boolean

If-Unmodified-Since logic: all dates should not be before this date (truncated to seconds).

Properties

Link copied to clipboard
val lastModified: GMTDate