DefaultHeaders

class DefaultHeaders

Adds standard HTTP headers Date and Server and provides ability to specify other headers that are included in responses.

Types

Configuration

class Configuration

Configuration for DefaultHeaders feature.

Feature

companion object Feature : 
    ApplicationFeature<Application, Configuration, DefaultHeaders>

Installable feature for DefaultHeaders.

Constructors

<init>

DefaultHeaders(config: Configuration)

Adds standard HTTP headers Date and Server and provides ability to specify other headers that are included in responses.

Companion Object Properties

key

Unique key that identifies a feature

Companion Object Functions

install

fun install(
    pipeline: Application,
    configure: Configuration.() -> Unit
): DefaultHeaders

Feature installation script