HSTSConfig

A configuration for the HSTS plugin.

Constructors

Link copied to clipboard
constructor()

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

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

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

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

Functions

Link copied to clipboard
fun filter(block: (ApplicationCall) -> Boolean)

Sets a filter that determines whether the plugin should be applied to a specific call.

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

Set specific configuration for a host.