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
.filename
will 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 aSoupHSTSEnforcerDB
will be written tofilename
whenchanged
is emitted.- Parameters:
filename – the filename of the database to read/write from.