Configuration

class Configuration

HSTS configuration

Constructors

Link copied to clipboard
fun Configuration()

Properties

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

Any custom directives supported by specific user-agent

Link copied to clipboard
var includeSubDomains: Boolean = true

Adds includeSubDomains directive, which applies this policy to this domain and any subdomains

Link copied to clipboard
var maxAge: Duration

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

Link copied to clipboard
var maxAgeInSeconds: Long

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

Link copied to clipboard
var preload: Boolean = false

Consents that the policy allows including the domain into web browser preloading list

Extensions

Link copied to clipboard
var HSTS.Configuration.maxAge: Duration
Link copied to clipboard