Soup.HSTSEnforcerDB¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
HSTS policy storage filename |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Soup.HSTSEnforcerDB(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Persistent HTTP Strict Transport Security enforcer.
Soup.HSTSEnforcerDB
is a [class`HSTSEnforcer`] that uses a SQLite database as a backend for persistency.- classmethod new(filename)¶
- Parameters:
filename (
str
) – the filename of the database to read/write from.- Returns:
the new
Soup.HSTSEnforcer
- Return type:
Creates a
Soup.HSTSEnforcerDB
.filename will be read in during the initialization of a
Soup.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 aSoup.HSTSEnforcerDB
will be written to filename when [signal`HSTSEnforcer`:py:func:::changed<Soup.HSTSEnforcerDB.signals.changed>] is emitted.