Package-level declarations

Types

Link copied to clipboard

A configuration for the ConditionalHeaders plugin.

Functions

Link copied to clipboard

Retrieves the LastModified and ETag versions from headers.

Link copied to clipboard

Retrieves versions such as LastModifiedVersion or EntityTagVersion for a given content.

Link copied to clipboard
suspend fun ApplicationCall.withETag(etag: String, putHeader: Boolean = true, block: suspend () -> Unit)

Checks the current etag value and pass it through conditions supplied by the remote client. Depending on the conditions, it produces 410 Precondition Failed or 304 Not modified responses when necessary. Otherwise, sets the ETag header and delegates to the block function

Properties

Link copied to clipboard

A plugin that avoids sending the body of content if it has not changed since the last request. This is achieved by using the following headers:

Link copied to clipboard

Retrieves the LastModified and ETag versions from this OutgoingContent headers.