Soup.HSTSEnforcerDB

g GObject.GInterface GObject.GInterface Soup.SessionFeature Soup.SessionFeature GObject.GInterface->Soup.SessionFeature GObject.Object GObject.Object Soup.HSTSEnforcer Soup.HSTSEnforcer GObject.Object->Soup.HSTSEnforcer Soup.HSTSEnforcerDB Soup.HSTSEnforcerDB Soup.HSTSEnforcer->Soup.HSTSEnforcerDB Soup.SessionFeature->Soup.HSTSEnforcer

Subclasses:

None

Methods

Inherited:

Soup.HSTSEnforcer (7), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (filename)

Virtual Methods

Inherited:

Soup.HSTSEnforcer (3), GObject.Object (7)

Properties

Name

Type

Flags

Short Description

filename

str

r/w/co

HSTS policy storage filename

Signals

Inherited:

Soup.HSTSEnforcer (1), GObject.Object (1)

Fields

Inherited:

Soup.HSTSEnforcer (1), GObject.Object (1)

Class Details

class Soup.HSTSEnforcerDB(**kwargs)
Bases:

Soup.HSTSEnforcer

Abstract:

No

Structure:

Soup.HSTSEnforcerDBClass

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:

Soup.HSTSEnforcer

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 a Soup.HSTSEnforcerDB will be written to filename when [signal`HSTSEnforcer`:py:func:::changed<Soup.HSTSEnforcerDB.signals.changed>] is emitted.

Property Details

Soup.HSTSEnforcerDB.props.filename
Name:

filename

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The filename of the SQLite database where HSTS policies are stored.