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 |
SessionAsync
is an implementation of Session
that uses
non-blocking I/O via the glib main loop for all I/O.
Synopsis
- newtype SessionAsync = SessionAsync (ManagedPtr SessionAsync)
- class (GObject o, IsDescendantOf SessionAsync o) => IsSessionAsync o
- toSessionAsync :: (MonadIO m, IsSessionAsync o) => o -> m SessionAsync
- sessionAsyncNew :: (HasCallStack, MonadIO m) => m SessionAsync
Exported types
newtype SessionAsync Source #
Memory-managed wrapper type.
SessionAsync (ManagedPtr SessionAsync) |
Instances
Eq SessionAsync Source # | |
Defined in GI.Soup.Objects.SessionAsync (==) :: SessionAsync -> SessionAsync -> Bool # (/=) :: SessionAsync -> SessionAsync -> Bool # | |
GObject SessionAsync Source # | |
Defined in GI.Soup.Objects.SessionAsync | |
ManagedPtrNewtype SessionAsync Source # | |
Defined in GI.Soup.Objects.SessionAsync toManagedPtr :: SessionAsync -> ManagedPtr SessionAsync | |
TypedObject SessionAsync Source # | |
Defined in GI.Soup.Objects.SessionAsync | |
HasParentTypes SessionAsync Source # | |
Defined in GI.Soup.Objects.SessionAsync | |
IsGValue (Maybe SessionAsync) Source # | Convert |
Defined in GI.Soup.Objects.SessionAsync gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe SessionAsync -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe SessionAsync) | |
type ParentTypes SessionAsync Source # | |
Defined in GI.Soup.Objects.SessionAsync |
class (GObject o, IsDescendantOf SessionAsync o) => IsSessionAsync o Source #
Type class for types which can be safely cast to SessionAsync
, for instance with toSessionAsync
.
Instances
(GObject o, IsDescendantOf SessionAsync o) => IsSessionAsync o Source # | |
Defined in GI.Soup.Objects.SessionAsync |
toSessionAsync :: (MonadIO m, IsSessionAsync o) => o -> m SessionAsync Source #
Cast to SessionAsync
, 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 SessionAsync | Returns: the new session. |
Deprecated: SessionAsync
is deprecated; use a plaintSession
, created with sessionNew
. See the <linklinkend="libsoup-session-porting">porting guide</link>.
Creates an asynchronous Session
with the default options.