Tests if policy1 and policy2 are equal.
whether the policies are equal.
Frees policy.
Gets policy's domain.
policy's domain.
Returns the max age for policy.
Max age in seconds
Gets whether policy include its subdomains.
true if policy includes subdomains, false otherwise.
Gets whether policy is expired.
Permanent policies never expire.
true if policy is expired, false otherwise.
Gets whether policy is a non-permanent, non-expirable session policy.
See HSTSPolicy.new_session_policy for details.
true if policy is permanent, false otherwise
StaticnewStaticnew_Staticnew_Staticnew_
HSTSPolicy implements HTTP policies, as described by RFC 6797.
domainrepresents the host that this policy applies to. The domain must be IDNA-canonicalized. HSTSPolicy.new and related methods will do this for you.max_agecontains the 'max-age' value from the Strict Transport Security header and indicates the time to live of this policy, in seconds.expireswill be non-nullif the policy has been set by the host and hence has an expiry time. Ifexpiresisnull, it indicates that the policy is a permanent session policy set by the user agent.If
include_subdomainsistrue, the Strict Transport Security policy must also be enforced on subdomains ofdomain.