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.

  1. this(void* ptr, Flag!"Take" take)
  2. this(string domain, gulong maxAge, bool includeSubdomains)
    class HSTSPolicy
    this
    (
    string domain
    ,
    gulong maxAge
    ,)

Parameters

domain string

policy domain or hostname

maxAge gulong

max age of the policy

includeSubdomains bool

true if the policy applies on subdomains

Return Value

a new #SoupHSTSPolicy.