Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Text-file-based ("cookies.txt") Cookie Jar
CookieJarText
is a [classcookieJar
] that reads cookies from and writes
them to a text file in format similar to Mozilla's "cookies.txt".
Synopsis
- newtype CookieJarText = CookieJarText (ManagedPtr CookieJarText)
- class (GObject o, IsDescendantOf CookieJarText o) => IsCookieJarText o
- toCookieJarText :: (MonadIO m, IsCookieJarText o) => o -> m CookieJarText
- cookieJarTextNew :: (HasCallStack, MonadIO m) => Text -> Bool -> m CookieJarText
- constructCookieJarTextFilename :: (IsCookieJarText o, MonadIO m) => Text -> m (GValueConstruct o)
- getCookieJarTextFilename :: (MonadIO m, IsCookieJarText o) => o -> m (Maybe Text)
Exported types
newtype CookieJarText Source #
Memory-managed wrapper type.
CookieJarText (ManagedPtr CookieJarText) |
Instances
Eq CookieJarText Source # | |
Defined in GI.Soup.Objects.CookieJarText (==) :: CookieJarText -> CookieJarText -> Bool # (/=) :: CookieJarText -> CookieJarText -> Bool # | |
GObject CookieJarText Source # | |
Defined in GI.Soup.Objects.CookieJarText | |
ManagedPtrNewtype CookieJarText Source # | |
Defined in GI.Soup.Objects.CookieJarText toManagedPtr :: CookieJarText -> ManagedPtr CookieJarText | |
TypedObject CookieJarText Source # | |
Defined in GI.Soup.Objects.CookieJarText | |
HasParentTypes CookieJarText Source # | |
Defined in GI.Soup.Objects.CookieJarText | |
IsGValue (Maybe CookieJarText) Source # | Convert |
Defined in GI.Soup.Objects.CookieJarText gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe CookieJarText -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe CookieJarText) | |
type ParentTypes CookieJarText Source # | |
Defined in GI.Soup.Objects.CookieJarText |
class (GObject o, IsDescendantOf CookieJarText o) => IsCookieJarText o Source #
Type class for types which can be safely cast to CookieJarText
, for instance with toCookieJarText
.
Instances
(GObject o, IsDescendantOf CookieJarText o) => IsCookieJarText o Source # | |
Defined in GI.Soup.Objects.CookieJarText |
toCookieJarText :: (MonadIO m, IsCookieJarText o) => o -> m CookieJarText Source #
Cast to CookieJarText
, 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
addCookie, addCookieFull, addCookieWithFirstParty, allCookies, bindProperty, bindPropertyFull, deleteCookie, forceFloating, freezeNotify, getv, isFloating, isPersistent, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getAcceptPolicy, getCookieList, getCookieListWithSameSiteInfo, getCookies, getData, getProperty, getQdata.
Setters
setAcceptPolicy, setCookie, setCookieWithFirstParty, setData, setDataFull, setProperty.
new
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Bool |
|
-> m CookieJarText | Returns: the new |
Creates a CookieJarText
.
filename
will be read in at startup to create an initial set of cookies. If
readOnly
is False
, then the non-session cookies will be written to
filename
when the signalcookieJar
[changed] signal is emitted from the
jar. (If readOnly
is True
, then the cookie jar will only be used for this
session, and changes made to it will be lost when the jar is destroyed.)
Properties
filename
Cookie-storage filename.
constructCookieJarTextFilename :: (IsCookieJarText 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
.
getCookieJarTextFilename :: (MonadIO m, IsCookieJarText o) => o -> m (Maybe Text) Source #
Get the value of the “filename
” property.
When overloading is enabled, this is equivalent to
get
cookieJarText #filename