class CachingHeaders
Feature that set CachingOptions headers for every response. It invokes optionsProviders for every response and use first non null caching options
class Configuration
Configuration for CachingHeaders feature |
|
companion object Feature : ApplicationFeature<ApplicationCallPipeline, Configuration, CachingHeaders>
|
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 |
fun optionsFor(content: OutgoingContent): List<CachingOptions>
Retrieves caching options for a given content |
val key: AttributeKey<CachingHeaders>
Unique key that identifies a feature |
fun install(pipeline: ApplicationCallPipeline, configure: Configuration.() -> Unit): CachingHeaders
Feature installation script |