ConditionalHeaders

class ConditionalHeaders(versionProviders: List<suspend (OutgoingContent) -> List<Version>>)

Feature to check modified/match conditional headers and avoid sending contents if it was not changed

Constructors

Link copied to clipboard
fun ConditionalHeaders(versionProviders: List<suspend (OutgoingContent) -> List<Version>>)

Types

Link copied to clipboard
class Configuration

Configuration for ConditionalHeaders feature

Link copied to clipboard

ApplicationFeature implementation for ConditionalHeaders

Functions

Link copied to clipboard
suspend fun versionsFor(content: OutgoingContent): List<Version>

Retrieves versions such as LastModifiedVersion or EntityTagVersion for a given content