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), Soup.SessionFeature (5)

Structs:

GObject.ObjectClass (5)

class

new (filename)

Virtual Methods

Inherited:

Soup.HSTSEnforcer (4), GObject.Object (7), Soup.SessionFeature (8)

Properties

Name

Type

Flags

Short Description

filename

str

r/w/co

HSTS policy storage filename

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

parent

Soup.HSTSEnforcer

r

Class Details

class Soup.HSTSEnforcerDB(**kwargs)
Bases:

Soup.HSTSEnforcer

Abstract:

No

Structure:

Soup.HSTSEnforcerDBClass

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 Soup.HSTSEnforcer ::changed is emitted.

New in version 2.68.

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.