CachingHeaders

class CachingHeaders(optionsProviders: List<(OutgoingContent) -> CachingOptions?>)

Feature that set CachingOptions headers for every response. It invokes optionsProviders for every response and use first non null caching options

Constructors

Link copied to clipboard
fun CachingHeaders(optionsProviders: List<(OutgoingContent) -> CachingOptions?>)

Types

Link copied to clipboard
class Configuration

Configuration for CachingHeaders feature

Link copied to clipboard

ApplicationFeature implementation for ConditionalHeaders

Functions

Link copied to clipboard
fun optionsFor(content: OutgoingContent): List<CachingOptions>

Retrieves caching options for a given content