HSTSPolicy.this

Creates a new session #SoupHSTSPolicy with the given attributes. A session policy is a policy that is valid during the lifetime of the #SoupHSTSEnforcer 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.

@domain is a domain on which the strict transport security policy represented by this object must be enforced.

If @include_subdomains is %TRUE, the strict transport security policy must also be enforced on all subdomains of @domain.

Parameters

domain string

policy domain or hostname

includeSubdomains bool

%TRUE if the policy applies on sub domains

Return Value

a new #SoupHSTSPolicy.

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.68