HSTSEnforcerDB

#SoupHSTSEnforcerDB is a #SoupHSTSEnforcer that uses a SQLite database as a backend for persistency.

Constructors

this
this(SoupHSTSEnforcerDB* soupHSTSEnforcerDB, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string filename)

Creates a #SoupHSTSEnforcerDB.

Members

Functions

getHSTSEnforcerDBStruct
SoupHSTSEnforcerDB* getHSTSEnforcerDBStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

soupHSTSEnforcerDB
SoupHSTSEnforcerDB* soupHSTSEnforcerDB;

the main Gtk struct

Inherited Members

From HSTSEnforcer

soupHSTSEnforcer
SoupHSTSEnforcer* soupHSTSEnforcer;

the main Gtk struct

getHSTSEnforcerStruct
SoupHSTSEnforcer* getHSTSEnforcerStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

__anonymous
mixin SessionFeatureT!(SoupHSTSEnforcer)
Undocumented in source.
getType
GType getType()
getDomains
ListG getDomains(bool sessionPolicies)

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

getPolicies
ListG 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(HSTSPolicy policy)

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.

setSessionPolicy
void setSessionPolicy(string domain, bool includeSubdomains)

Sets a session policy for @domain. A session policy is a policy that is permanent to the lifetime of @hsts_enforcer's #SoupSession and doesn't expire.

addOnChanged
gulong addOnChanged(void delegate(HSTSPolicy, HSTSPolicy, HSTSEnforcer) dlg, ConnectFlags connectFlags)

Emitted when @hsts_enforcer changes. If a policy has been added, @new_policy will contain the newly-added policy and @old_policy will be %NULL. If a policy has been deleted, @old_policy will contain the to-be-deleted policy and @new_policy will be %NULL. If a policy has been changed, @old_policy will contain its old value, and @new_policy its new value.

addOnHstsEnforced
gulong addOnHstsEnforced(void delegate(Message, HSTSEnforcer) dlg, ConnectFlags connectFlags)

Emitted when @hsts_enforcer has upgraded the protocol for @message to HTTPS as a result of matching its domain with a HSTS policy.

Meta