HstsPolicy
Creates a new #SoupHSTSPolicy with the given attributes.
Return
a new #SoupHSTSPolicy.
Parameters
policy domain or hostname
max age of the policy
true if the policy applies on subdomains
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
a #SoupMessage
Full version of ctor@HSTSPolicy.new, to use with an existing expiration date.
See ctor@HSTSPolicy.new for details.
Return
a new #SoupHSTSPolicy.
Parameters
policy domain or hostname
max age of the policy
the date of expiration of the policy or null for a permanent policy
true if the policy applies on subdomains
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
policy domain or hostname
true if the policy applies on sub domains