HSTS

class HSTS

HSTS feature that appends Strict-Transport-Security HTTP header to every response. See http://ktor.io/servers/features/hsts.html for details See RFC 6797 https://tools.ietf.org/html/rfc6797

Types

Configuration

class Configuration

HSTS configuration

Feature

companion object Feature : 
    ApplicationFeature<ApplicationCallPipeline, Configuration, HSTS>

Feature installation object

Constructors

<init>

HSTS(config: Configuration)

HSTS feature that appends Strict-Transport-Security HTTP header to every response. See http://ktor.io/servers/features/hsts.html for details See RFC 6797 https://tools.ietf.org/html/rfc6797

Properties

headerValue

val headerValue: String

Constructed Strict-Transport-Security header value

Functions

intercept

fun intercept(call: ApplicationCall): Unit

Feature’s main interceptor, usually installed by the feature itself

Companion Object Properties

key

val key: AttributeKey<HSTS>

Unique key that identifies a feature

Companion Object Functions

install

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

Feature installation script