Creates a new #SoupHSTSPolicy with the given attributes.
Copies policy.
Tests if policy1 and policy2 are equal.
Gets policy's domain.
Returns the expiration date for policy.
Returns the max age for policy.
Gets whether policy include its subdomains.
Gets whether policy is expired.
Gets whether policy is a non-permanent, non-expirable session policy.
Parses msg's first "Strict-Transport-Security" response header and returns a #SoupHSTSPolicy.
Full version of soup.hstspolicy.HSTSPolicy.new_, to use with an existing expiration date.
Creates a new session #SoupHSTSPolicy with the given attributes.
Pointer to the C boxed value
Get the GType of this boxed type.
Boxed GType property.
Convenience method to return this cast to a type. For use in D with statements.
Make a copy of the wrapped C boxed data.
Copy a C boxed value using g_boxed_copy.
Free a C boxed value using g_boxed_free.
#SoupHSTSPolicy implements HTTP policies, as described by RFC 6797.
@domain represents the host that this policy applies to. The domain must be IDNA-canonicalized. soup.hstspolicy.HSTSPolicy.new_ and related methods will do this for you.
@max_age contains the 'max-age' value from the Strict Transport Security header and indicates the time to live of this policy, in seconds.
@expires will be non-null if the policy has been set by the host and hence has an expiry time. If @expires is null, it indicates that the policy is a permanent session policy set by the user agent.
If @include_subdomains is true, the Strict Transport Security policy must also be enforced on subdomains of @domain.