HSTSEnforcer.hasValidPolicy

Gets whether hsts_enforcer has a currently valid policy for domain.

class HSTSEnforcer
bool
hasValidPolicy
(
string domain
)

Parameters

domain string

a domain.

Return Value

Type: bool

true if access to domain should happen over HTTPS, false otherwise.