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 |
ProxyURIResolver
is an interface for finding appropriate HTTP
proxies to use.
Synopsis
- newtype ProxyURIResolver = ProxyURIResolver (ManagedPtr ProxyURIResolver)
- class (GObject o, IsDescendantOf ProxyURIResolver o) => IsProxyURIResolver o
- toProxyURIResolver :: (MonadIO m, IsProxyURIResolver o) => o -> m ProxyURIResolver
- proxyURIResolverGetProxyUriAsync :: (HasCallStack, MonadIO m, IsProxyURIResolver a, IsCancellable b) => a -> URI -> Maybe MainContext -> Maybe b -> ProxyURIResolverCallback -> m ()
- proxyURIResolverGetProxyUriSync :: (HasCallStack, MonadIO m, IsProxyURIResolver a, IsCancellable b) => a -> URI -> Maybe b -> m (Word32, URI)
Exported types
newtype ProxyURIResolver Source #
Deprecated: Session
now has a Session
:proxy-resolver
property that takes a ProxyResolver
(which is semanticallyidentical to ProxyURIResolver
).Even in older releases of libsoup, you are not likely to have toimplement this interface on your own; instead, you should usuallyjust be able to use ProxyResolverDefault
.
Memory-managed wrapper type.
ProxyURIResolver (ManagedPtr ProxyURIResolver) | Deprecated: |
Instances
Eq ProxyURIResolver Source # | |
Defined in GI.Soup.Interfaces.ProxyURIResolver (==) :: ProxyURIResolver -> ProxyURIResolver -> Bool # (/=) :: ProxyURIResolver -> ProxyURIResolver -> Bool # | |
GObject ProxyURIResolver Source # | |
Defined in GI.Soup.Interfaces.ProxyURIResolver | |
ManagedPtrNewtype ProxyURIResolver Source # | |
Defined in GI.Soup.Interfaces.ProxyURIResolver toManagedPtr :: ProxyURIResolver -> ManagedPtr ProxyURIResolver | |
TypedObject ProxyURIResolver Source # | |
Defined in GI.Soup.Interfaces.ProxyURIResolver | |
HasParentTypes ProxyURIResolver Source # | |
Defined in GI.Soup.Interfaces.ProxyURIResolver | |
IsGValue (Maybe ProxyURIResolver) Source # | Convert |
Defined in GI.Soup.Interfaces.ProxyURIResolver gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ProxyURIResolver -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ProxyURIResolver) | |
type ParentTypes ProxyURIResolver Source # | |
Defined in GI.Soup.Interfaces.ProxyURIResolver |
class (GObject o, IsDescendantOf ProxyURIResolver o) => IsProxyURIResolver o Source #
Type class for types which can be safely cast to ProxyURIResolver
, for instance with toProxyURIResolver
.
Instances
(GObject o, IsDescendantOf ProxyURIResolver o) => IsProxyURIResolver o Source # | |
Defined in GI.Soup.Interfaces.ProxyURIResolver |
toProxyURIResolver :: (MonadIO m, IsProxyURIResolver o) => o -> m ProxyURIResolver Source #
Cast to ProxyURIResolver
, 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, isFloating, notify, notifyByPspec, ref, refSink, removeFeature, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getProxyUriAsync, getProxyUriSync, getQdata.
Setters
getProxyUriAsync
proxyURIResolverGetProxyUriAsync Source #
:: (HasCallStack, MonadIO m, IsProxyURIResolver a, IsCancellable b) | |
=> a |
|
-> URI |
|
-> Maybe MainContext |
|
-> Maybe b |
|
-> ProxyURIResolverCallback |
|
-> m () |
Deprecated: ProxyURIResolver
is deprecated in favor oftProxyResolver
Asynchronously determines a proxy URI to use for msg
and calls
callback
.
Since: 2.26.3
getProxyUriSync
proxyURIResolverGetProxyUriSync Source #
:: (HasCallStack, MonadIO m, IsProxyURIResolver a, IsCancellable b) | |
=> a |
|
-> URI |
|
-> Maybe b |
|
-> m (Word32, URI) | Returns: |
Deprecated: ProxyURIResolver
is deprecated in favor oftProxyResolver
Synchronously determines a proxy URI to use for uri
. If uri
should be sent via proxy, *proxyUri
will be set to the URI of the
proxy, else it will be set to Nothing
.
Since: 2.26.3