ConditionalHeaders

class ConditionalHeaders

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

Types

Configuration

class Configuration

Configuration for ConditionalHeaders feature

Feature

ApplicationFeature implementation for ConditionalHeaders

Constructors

<init>

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

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

Functions

versionsFor

suspend fun versionsFor(
    content: OutgoingContent
): List<Version>

Retrieves versions such as LastModifiedVersion or EntityTagVersion for a given content

Companion Object Properties

key

Unique key that identifies a feature

Companion Object Functions

install

fun install(
    pipeline: ApplicationCallPipeline,
    configure: Configuration.() -> Unit
): ConditionalHeaders

Feature installation script