new

fun new(domain: String, maxAge: <Error class: unknown class>, includeSubdomains: Boolean): HstsPolicy

Creates a new #SoupHSTSPolicy with the given attributes.

Return

a new #SoupHSTSPolicy.

Parameters

domain

policy domain or hostname

maxAge

max age of the policy

includeSubdomains

true if the policy applies on subdomains