gi-soup-2.4.24: Libsoup bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Soup.Objects.HSTSEnforcerDB

Description

HSTSEnforcerDB is a HSTSEnforcer that uses a SQLite database as a backend for persistency.

Synopsis

Exported types

newtype HSTSEnforcerDB Source #

Memory-managed wrapper type.

Constructors

HSTSEnforcerDB (ManagedPtr HSTSEnforcerDB) 

Instances

Instances details
Eq HSTSEnforcerDB Source # 
Instance details

Defined in GI.Soup.Objects.HSTSEnforcerDB

GObject HSTSEnforcerDB Source # 
Instance details

Defined in GI.Soup.Objects.HSTSEnforcerDB

ManagedPtrNewtype HSTSEnforcerDB Source # 
Instance details

Defined in GI.Soup.Objects.HSTSEnforcerDB

TypedObject HSTSEnforcerDB Source # 
Instance details

Defined in GI.Soup.Objects.HSTSEnforcerDB

Methods

glibType :: IO GType

HasParentTypes HSTSEnforcerDB Source # 
Instance details

Defined in GI.Soup.Objects.HSTSEnforcerDB

IsGValue (Maybe HSTSEnforcerDB) Source #

Convert HSTSEnforcerDB to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Soup.Objects.HSTSEnforcerDB

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe HSTSEnforcerDB -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe HSTSEnforcerDB)

type ParentTypes HSTSEnforcerDB Source # 
Instance details

Defined in GI.Soup.Objects.HSTSEnforcerDB

class (GObject o, IsDescendantOf HSTSEnforcerDB o) => IsHSTSEnforcerDB o Source #

Type class for types which can be safely cast to HSTSEnforcerDB, for instance with toHSTSEnforcerDB.

Instances

Instances details
(GObject o, IsDescendantOf HSTSEnforcerDB o) => IsHSTSEnforcerDB o Source # 
Instance details

Defined in GI.Soup.Objects.HSTSEnforcerDB

toHSTSEnforcerDB :: (MonadIO m, IsHSTSEnforcerDB o) => o -> m HSTSEnforcerDB Source #

Cast to HSTSEnforcerDB, for types for which this is known to be safe. For general casts, use castTo.

Methods

new

hSTSEnforcerDBNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

filename: the filename of the database to read/write from.

-> m HSTSEnforcerDB

Returns: the new HSTSEnforcer

Creates a HSTSEnforcerDB.

filename will be read in during the initialization of a 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 HSTSEnforcerDB will be written to filename when changed is emitted.

Since: 2.68

Properties

filename

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

constructHSTSEnforcerDBFilename :: (IsHSTSEnforcerDB o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “filename” property. This is rarely needed directly, but it is used by new.

getHSTSEnforcerDBFilename :: (MonadIO m, IsHSTSEnforcerDB o) => o -> m (Maybe Text) Source #

Get the value of the “filename” property. When overloading is enabled, this is equivalent to

get hSTSEnforcerDB #filename