class DefaultHeaders
Adds standard HTTP headers Date
and Server
and provides ability to specify other headers
that are included in responses.
class Configuration
Configuration for DefaultHeaders feature. |
|
companion object Feature : ApplicationFeature<Application, Configuration, DefaultHeaders>
Installable feature for DefaultHeaders. |
DefaultHeaders(config: Configuration)
Adds standard HTTP headers |
val key: AttributeKey<DefaultHeaders>
Unique key that identifies a feature |
fun install(pipeline: Application, configure: Configuration.() -> Unit): DefaultHeaders
Feature installation script |