HSTSPolicy.this

Creates a new #SoupHSTSPolicy with the given attributes.

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

@max_age is used to set the "expires" attribute on the policy; pass SOUP_HSTS_POLICY_MAX_AGE_PAST for an already-expired policy, or a lifetime in seconds.

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

maxAge ulong

max age of the policy

includeSubdomains bool

%TRUE if the policy applies on subdomains

Return Value

a new #SoupHSTSPolicy.

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.68