HSTSConfig

A configuration for the HSTS plugin.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun withHost(host: String, configure: HSTSHostConfig.() -> Unit)

Set specific configuration for a host.

Properties

Link copied to clipboard

Allows you to add custom directives supported by a specific user agent.

Link copied to clipboard

Specifies the includeSubDomains directive, which applies this policy to any subdomains as well.

Link copied to clipboard

Specifies how long (in seconds) the client should keep the host in a list of known HSTS hosts:

Link copied to clipboard
var preload: Boolean = false

Specifies the preload HSTS directive, which allows you to include your domain name in the HSTS preload list.

Extensions

Link copied to clipboard

Duration to tell the client to keep the host in a list of known HSTS hosts.