HSTSEnforcerDB


Description:

[ CCode ( has_construct_function = false , type = "SoupHSTSEnforcer*" ) ]
[ Version ( since = "2.68" ) ]
public HSTSEnforcerDB (string filename)

Creates a [class@HSTSEnforcerDB].

filename will be read in during the initialization of a [class@HSTSEnforcerDB], in order to create an initial set of HSTS policies. If the file doesn't exist, a new database will be created and initialized. Changes to the policies during the lifetime of a [ class@HSTSEnforcerDB] will be written to filename when [signal@HSTSEnforcer:SoupHSTSEnforcerDB:changed] is emitted.

Parameters:

filename

the filename of the database to read/write from.

Returns:

the new HSTSEnforcer