:right-sidebar: True HSTSEnforcerDB =================================================================== .. currentmodule:: gi.repository.Soup .. class:: HSTSEnforcerDB(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Soup.HSTSEnforcer`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Soup.SessionFeature` Persistent HTTP Strict Transport Security enforcer. ``SoupHSTSEnforcerDB`` is a :obj:`~gi.repository.Soup.HSTSEnforcer` that uses a SQLite database as a backend for persistency. Constructors ------------ .. rst-class:: interim-class .. class:: HSTSEnforcerDB :no-index: .. classmethod:: new(filename: str) -> ~gi.repository.Soup.HSTSEnforcer Creates a ``SoupHSTSEnforcerDB``. ``filename`` will be read in during the initialization of a ``SoupHSTSEnforcerDB``, 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 ``SoupHSTSEnforcerDB`` will be written to ``filename`` when :obj:`~gi.repository.Soup.HSTSEnforcer.signals.changed` is emitted. :param filename: the filename of the database to read/write from. Properties ---------- .. rst-class:: interim-class .. class:: HSTSEnforcerDB :no-index: .. attribute:: props.filename :type: str The type of the None singleton.