HSTSEnforcer.hasValidPolicy

bool hasValidPolicy(string domain) nothrow

Gets whether hsts_enforcer has a currently valid policy for domain.

Parameters

domaina domain.

Returns

true if access to domain should happen over HTTPS, false

otherwise.