HSTSEnforcerDB#
Superclasses: HSTSEnforcer, Object
Implemented Interfaces: SessionFeature
Persistent HTTP Strict Transport Security enforcer.
HSTSEnforcerDB is a HSTSEnforcer that uses a SQLite
database as a backend for persistency.
Constructors#
- class HSTSEnforcerDB
- classmethod new(filename: str) HSTSEnforcer#
Creates a
HSTSEnforcerDB.filenamewill be read in during the initialization of aHSTSEnforcerDB, 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 aHSTSEnforcerDBwill be written tofilenamewhenchangedis emitted.- Parameters:
filename – the filename of the database to read/write from.