Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
HSTSEnforcerDB
is a HSTSEnforcer
that uses a SQLite
database as a backend for persistency.
Synopsis
- newtype HSTSEnforcerDB = HSTSEnforcerDB (ManagedPtr HSTSEnforcerDB)
- class (GObject o, IsDescendantOf HSTSEnforcerDB o) => IsHSTSEnforcerDB o
- toHSTSEnforcerDB :: (MonadIO m, IsHSTSEnforcerDB o) => o -> m HSTSEnforcerDB
- hSTSEnforcerDBNew :: (HasCallStack, MonadIO m) => Text -> m HSTSEnforcerDB
- constructHSTSEnforcerDBFilename :: (IsHSTSEnforcerDB o, MonadIO m) => Text -> m (GValueConstruct o)
- getHSTSEnforcerDBFilename :: (MonadIO m, IsHSTSEnforcerDB o) => o -> m (Maybe Text)
Exported types
newtype HSTSEnforcerDB Source #
Memory-managed wrapper type.
HSTSEnforcerDB (ManagedPtr HSTSEnforcerDB) |
Instances
Eq HSTSEnforcerDB Source # | |
Defined in GI.Soup.Objects.HSTSEnforcerDB (==) :: HSTSEnforcerDB -> HSTSEnforcerDB -> Bool # (/=) :: HSTSEnforcerDB -> HSTSEnforcerDB -> Bool # | |
GObject HSTSEnforcerDB Source # | |
Defined in GI.Soup.Objects.HSTSEnforcerDB | |
ManagedPtrNewtype HSTSEnforcerDB Source # | |
Defined in GI.Soup.Objects.HSTSEnforcerDB toManagedPtr :: HSTSEnforcerDB -> ManagedPtr HSTSEnforcerDB | |
TypedObject HSTSEnforcerDB Source # | |
Defined in GI.Soup.Objects.HSTSEnforcerDB | |
HasParentTypes HSTSEnforcerDB Source # | |
Defined in GI.Soup.Objects.HSTSEnforcerDB | |
IsGValue (Maybe HSTSEnforcerDB) Source # | Convert |
Defined in GI.Soup.Objects.HSTSEnforcerDB gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe HSTSEnforcerDB -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe HSTSEnforcerDB) | |
type ParentTypes HSTSEnforcerDB Source # | |
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
(GObject o, IsDescendantOf HSTSEnforcerDB o) => IsHSTSEnforcerDB o Source # | |
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
Click to display all available methods, including inherited ones
Methods
addFeature, attach, bindProperty, bindPropertyFull, detach, forceFloating, freezeNotify, getv, hasFeature, hasValidPolicy, isFloating, isPersistent, notify, notifyByPspec, ref, refSink, removeFeature, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getDomains, getPolicies, getProperty, getQdata.
Setters
setData, setDataFull, setPolicy, setProperty, setSessionPolicy.
new
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m HSTSEnforcerDB | Returns: the new |
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