1.17 <SoupHSTSEnforcerDB>

Class: <SoupHSTSEnforcerDB>

It derives from <SoupHSTSEnforcer>.

Persistent HTTP Strict Transport Security enforcer.

HSTSEnforcerDB is a HSTSEnforcer that uses a SQLite database as a backend for persistency.

Properties

Property: hstsenforcer-db:filename self

The filename of the SQLite database where HSTS policies are stored.

Its value is a string, or #f.

It can only be set when the object is made, with #:filename.

Procedures

Procedure: hstsenforcer-db:new filename ⇒ %return

Creates a HSTSEnforcerDB.

filename will be read in during the initialization of a 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 HSTSEnforcerDB will be written to filename when "changed" is emitted.

filename

Passed: a string.

the filename of the database to read/write from.

%return

Returned: a <SoupHSTSEnforcer>.

the new <SoupHSTSEnforcer>