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 |
SessionSync
is an implementation of Session
that uses
synchronous I/O, intended for use in multi-threaded programs.
Synopsis
- newtype SessionSync = SessionSync (ManagedPtr SessionSync)
- class (GObject o, IsDescendantOf SessionSync o) => IsSessionSync o
- toSessionSync :: (MonadIO m, IsSessionSync o) => o -> m SessionSync
- sessionSyncNew :: (HasCallStack, MonadIO m) => m SessionSync
Exported types
newtype SessionSync Source #
Memory-managed wrapper type.
SessionSync (ManagedPtr SessionSync) |
Instances
Eq SessionSync Source # | |
Defined in GI.Soup.Objects.SessionSync (==) :: SessionSync -> SessionSync -> Bool # (/=) :: SessionSync -> SessionSync -> Bool # | |
GObject SessionSync Source # | |
Defined in GI.Soup.Objects.SessionSync | |
ManagedPtrNewtype SessionSync Source # | |
Defined in GI.Soup.Objects.SessionSync toManagedPtr :: SessionSync -> ManagedPtr SessionSync | |
TypedObject SessionSync Source # | |
Defined in GI.Soup.Objects.SessionSync | |
HasParentTypes SessionSync Source # | |
Defined in GI.Soup.Objects.SessionSync | |
IsGValue (Maybe SessionSync) Source # | Convert |
Defined in GI.Soup.Objects.SessionSync gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe SessionSync -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe SessionSync) | |
type ParentTypes SessionSync Source # | |
Defined in GI.Soup.Objects.SessionSync |
class (GObject o, IsDescendantOf SessionSync o) => IsSessionSync o Source #
Type class for types which can be safely cast to SessionSync
, for instance with toSessionSync
.
Instances
(GObject o, IsDescendantOf SessionSync o) => IsSessionSync o Source # | |
Defined in GI.Soup.Objects.SessionSync |
toSessionSync :: (MonadIO m, IsSessionSync o) => o -> m SessionSync Source #
Cast to SessionSync
, 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
abort, addFeature, addFeatureByType, bindProperty, bindPropertyFull, cancelMessage, connectAsync, connectFinish, forceFloating, freezeNotify, getv, hasFeature, isFloating, notify, notifyByPspec, pauseMessage, prefetchDns, prepareForUri, queueMessage, redirectMessage, ref, refSink, removeFeature, removeFeatureByType, request, requestHttp, requestHttpUri, requestUri, requeueMessage, runDispose, send, sendAsync, sendFinish, sendMessage, stealConnection, stealData, stealQdata, thawNotify, unpauseMessage, unref, watchClosure, websocketConnectAsync, websocketConnectFinish, wouldRedirect.
Getters
getAsyncContext, getData, getFeature, getFeatureForMessage, getFeatures, getProperty, getQdata.
Setters
new
:: (HasCallStack, MonadIO m) | |
=> m SessionSync | Returns: the new session. |
Deprecated: SessionSync
is deprecated; use a plaintSession
, created with sessionNew
. See the <linklinkend="libsoup-session-porting">porting guide</link>.
Creates an synchronous Session
with the default options.