HSTSEnforcer.setPolicy

Sets @policy to @hsts_enforcer. If @policy is expired, any existing HSTS policy for its host will be removed instead. If a policy existed for this host, it will be replaced. Otherwise, the new policy will be inserted. If the policy is a session policy, that is, one created with soup_hsts_policy_new_session_policy(), the policy will not expire and will be enforced during the lifetime of @hsts_enforcer's #SoupSession.

class HSTSEnforcer
void
setPolicy

Parameters

policy HSTSPolicy

the policy of the HSTS host

Meta

Since

2.68