interface Version
Represents content version
An example of version is EntityTagVersion or LastModifiedVersion
abstract fun appendHeadersTo(builder: HeadersBuilder): Unit
Appends relevant headers to the builder |
|
abstract fun check(requestHeaders: Headers): VersionCheckResult
Checks requestHeaders against this version and returns VersionCheckResult |
data class EntityTagVersion : Version
This version checks etag value and pass it through conditions supplied by the remote client. Depending on conditions it produces return value of enum type VersionCheckResult |
|
data class LastModifiedVersion : Version
This version passes the given lastModified date through the client provided http conditional headers If-Modified-Since and If-Unmodified-Since. |