HSTSEnforcerDB

Persistent HTTP Strict Transport Security enforcer.

#SoupHSTSEnforcerDB is a class@HSTSEnforcer that uses a SQLite database as a backend for persistency.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(string filename)

Creates a #SoupHSTSEnforcerDB.

Members

Functions

self
HSTSEnforcerDB self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()

Inherited Members

From HSTSEnforcer

getGType
GType getGType()
gType
GType gType [@property getter]
self
HSTSEnforcer self()

Returns this, for use in with statements.

getDomains
string[] getDomains(bool sessionPolicies)

Gets a list of domains for which there are policies in enforcer.

getPolicies
soup.hstspolicy.HSTSPolicy[] getPolicies(bool sessionPolicies)

Gets a list with the policies in enforcer.

hasValidPolicy
bool hasValidPolicy(string domain)

Gets whether hsts_enforcer has a currently valid policy for domain.

isPersistent
bool isPersistent()

Gets whether hsts_enforcer stores policies persistenly.

setPolicy
void setPolicy(soup.hstspolicy.HSTSPolicy policy)

Sets policy to hsts_enforcer.

setSessionPolicy
void setSessionPolicy(string domain, bool includeSubdomains)

Sets a session policy for domain.

connectChanged
ulong connectChanged(T callback, Flag!"After" after)

Connect to Changed signal.