HstsPolicy

constructor(domain: String, maxAge: <Error class: unknown class>, includeSubdomains: Boolean)(source)

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


constructor(msg: Message)(source)

Parses @msg's first "Strict-Transport-Security" response header and returns a #SoupHSTSPolicy.

Return

a new #SoupHSTSPolicy, or null if no valid "Strict-Transport-Security" response header was found.

Parameters

msg

a #SoupMessage


constructor(domain: String, maxAge: <Error class: unknown class>, expires: <Error class: unknown class>, includeSubdomains: Boolean)(source)

Full version of ctor@HSTSPolicy.new, to use with an existing expiration date.

See ctor@HSTSPolicy.new for details.

Return

a new #SoupHSTSPolicy.

Parameters

domain

policy domain or hostname

maxAge

max age of the policy

expires

the date of expiration of the policy or null for a permanent policy

includeSubdomains

true if the policy applies on subdomains


constructor(domain: String, includeSubdomains: Boolean)(source)

Creates a new session #SoupHSTSPolicy with the given attributes.

A session policy is a policy that is valid during the lifetime of the class@HSTSEnforcer it is added to. Contrary to regular policies, it has no expiration date and is not stored in persistent enforcers. These policies are useful for user-agent to load their own or user-defined rules.

Return

a new #SoupHSTSPolicy.

Parameters

domain

policy domain or hostname

includeSubdomains

true if the policy applies on sub domains


constructor(soupHstsPolicyPointer: <Error class: unknown class><<Error class: unknown class>>)(source)