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