HSTSConfig

class HSTSConfig

A configuration for the HSTS plugin.

Constructors

Link copied to clipboard
fun HSTSConfig()

Properties

Link copied to clipboard
val customDirectives: MutableMap<String, String?>

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

Link copied to clipboard
var includeSubDomains: Boolean = true

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

Link copied to clipboard
var maxAgeInSeconds: Long

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
var HSTSConfig.maxAgeDuration: Duration

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