gi-soup-2.4.18: Libsoup bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Soup.Interfaces.ProxyURIResolver

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

class (GObject o, IsDescendantOf ProxyURIResolver o) => IsProxyURIResolver o Source #

Type class for types which can be safely cast to ProxyURIResolver, for instance with toProxyURIResolver.

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

getProxyUriAsync

proxyURIResolverGetProxyUriAsync Source #

Arguments

:: (HasCallStack, MonadIO m, IsProxyURIResolver a, IsCancellable b) 
=> a

proxyUriResolver: the ProxyURIResolver

-> URI

uri: the URI you want a proxy for

-> Maybe MainContext

asyncContext: the MainContext to invoke callback in

-> Maybe b

cancellable: a Cancellable, or Nothing

-> ProxyURIResolverCallback

callback: callback to invoke with the proxy address

-> m () 

Deprecated: ProxyURIResolver is deprecated in favor ofProxyResolver

Asynchronously determines a proxy URI to use for msg and calls callback.

Since: 2.26.3

getProxyUriSync

proxyURIResolverGetProxyUriSync Source #

Arguments

:: (HasCallStack, MonadIO m, IsProxyURIResolver a, IsCancellable b) 
=> a

proxyUriResolver: the ProxyURIResolver

-> URI

uri: the URI you want a proxy for

-> Maybe b

cancellable: a Cancellable, or Nothing

-> m (Word32, URI)

Returns: StatusOk if successful, or a transport-level error.

Deprecated: ProxyURIResolver is deprecated in favor ofProxyResolver

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