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.SessionSync

Description

SessionSync is an implementation of Session that uses synchronous I/O, intended for use in multi-threaded programs.

Synopsis

Exported types

newtype SessionSync Source #

Memory-managed wrapper type.

Constructors

SessionSync (ManagedPtr SessionSync) 

Instances

Instances details
Eq SessionSync Source # 
Instance details

Defined in GI.Soup.Objects.SessionSync

GObject SessionSync Source # 
Instance details

Defined in GI.Soup.Objects.SessionSync

ManagedPtrNewtype SessionSync Source # 
Instance details

Defined in GI.Soup.Objects.SessionSync

Methods

toManagedPtr :: SessionSync -> ManagedPtr SessionSync

TypedObject SessionSync Source # 
Instance details

Defined in GI.Soup.Objects.SessionSync

Methods

glibType :: IO GType

HasParentTypes SessionSync Source # 
Instance details

Defined in GI.Soup.Objects.SessionSync

IsGValue (Maybe SessionSync) Source #

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

Instance details

Defined in GI.Soup.Objects.SessionSync

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes SessionSync Source # 
Instance details

Defined in GI.Soup.Objects.SessionSync

type ParentTypes SessionSync = '[Session, Object]

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

Instances details
(GObject o, IsDescendantOf SessionSync o) => IsSessionSync o Source # 
Instance details

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

new

sessionSyncNew Source #

Arguments

:: (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.