Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
ProxyAddressEnumerator
is a wrapper around SocketAddressEnumerator
which
takes the SocketAddress
instances returned by the SocketAddressEnumerator
and wraps them in ProxyAddress
instances, using the given
ProxyAddressEnumerator
:proxy-resolver
.
This enumerator will be returned (for example, by
socketConnectableEnumerate
) as appropriate when a proxy is configured;
there should be no need to manually wrap a SocketAddressEnumerator
instance
with one.
Synopsis
- newtype ProxyAddressEnumerator = ProxyAddressEnumerator (ManagedPtr ProxyAddressEnumerator)
- class (GObject o, IsDescendantOf ProxyAddressEnumerator o) => IsProxyAddressEnumerator o
- toProxyAddressEnumerator :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m ProxyAddressEnumerator
- constructProxyAddressEnumeratorConnectable :: (IsProxyAddressEnumerator o, MonadIO m, IsSocketConnectable a) => a -> m (GValueConstruct o)
- getProxyAddressEnumeratorConnectable :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m (Maybe SocketConnectable)
- constructProxyAddressEnumeratorDefaultPort :: (IsProxyAddressEnumerator o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getProxyAddressEnumeratorDefaultPort :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m Word32
- clearProxyAddressEnumeratorProxyResolver :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m ()
- constructProxyAddressEnumeratorProxyResolver :: (IsProxyAddressEnumerator o, MonadIO m, IsProxyResolver a) => a -> m (GValueConstruct o)
- getProxyAddressEnumeratorProxyResolver :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m (Maybe ProxyResolver)
- setProxyAddressEnumeratorProxyResolver :: (MonadIO m, IsProxyAddressEnumerator o, IsProxyResolver a) => o -> a -> m ()
- constructProxyAddressEnumeratorUri :: (IsProxyAddressEnumerator o, MonadIO m) => Text -> m (GValueConstruct o)
- getProxyAddressEnumeratorUri :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m (Maybe Text)
Exported types
newtype ProxyAddressEnumerator Source #
Memory-managed wrapper type.
Instances
Eq ProxyAddressEnumerator Source # | |
Defined in GI.Gio.Objects.ProxyAddressEnumerator | |
IsGValue ProxyAddressEnumerator Source # | Convert |
Defined in GI.Gio.Objects.ProxyAddressEnumerator toGValue :: ProxyAddressEnumerator -> IO GValue # | |
ManagedPtrNewtype ProxyAddressEnumerator Source # | |
TypedObject ProxyAddressEnumerator Source # | |
Defined in GI.Gio.Objects.ProxyAddressEnumerator | |
GObject ProxyAddressEnumerator Source # | |
Defined in GI.Gio.Objects.ProxyAddressEnumerator | |
HasParentTypes ProxyAddressEnumerator Source # | |
Defined in GI.Gio.Objects.ProxyAddressEnumerator | |
type ParentTypes ProxyAddressEnumerator Source # | |
Defined in GI.Gio.Objects.ProxyAddressEnumerator |
class (GObject o, IsDescendantOf ProxyAddressEnumerator o) => IsProxyAddressEnumerator o Source #
Type class for types which can be safely cast to ProxyAddressEnumerator
, for instance with toProxyAddressEnumerator
.
Instances
(GObject o, IsDescendantOf ProxyAddressEnumerator o) => IsProxyAddressEnumerator o Source # | |
Defined in GI.Gio.Objects.ProxyAddressEnumerator |
toProxyAddressEnumerator :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m ProxyAddressEnumerator Source #
Cast to ProxyAddressEnumerator
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Overloaded methods
Properties
connectable
No description available in the introspection data.
constructProxyAddressEnumeratorConnectable :: (IsProxyAddressEnumerator o, MonadIO m, IsSocketConnectable a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “connectable
” property. This is rarely needed directly, but it is used by new
.
getProxyAddressEnumeratorConnectable :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m (Maybe SocketConnectable) Source #
Get the value of the “connectable
” property.
When overloading is enabled, this is equivalent to
get
proxyAddressEnumerator #connectable
defaultPort
The default port to use if ProxyAddressEnumerator
:uri
does not
specify one.
Since: 2.38
constructProxyAddressEnumeratorDefaultPort :: (IsProxyAddressEnumerator o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “default-port
” property. This is rarely needed directly, but it is used by new
.
getProxyAddressEnumeratorDefaultPort :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m Word32 Source #
Get the value of the “default-port
” property.
When overloading is enabled, this is equivalent to
get
proxyAddressEnumerator #defaultPort
proxyResolver
The proxy resolver to use.
Since: 2.36
clearProxyAddressEnumeratorProxyResolver :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m () Source #
Set the value of the “proxy-resolver
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#proxyResolver
constructProxyAddressEnumeratorProxyResolver :: (IsProxyAddressEnumerator o, MonadIO m, IsProxyResolver a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “proxy-resolver
” property. This is rarely needed directly, but it is used by new
.
getProxyAddressEnumeratorProxyResolver :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m (Maybe ProxyResolver) Source #
Get the value of the “proxy-resolver
” property.
When overloading is enabled, this is equivalent to
get
proxyAddressEnumerator #proxyResolver
setProxyAddressEnumeratorProxyResolver :: (MonadIO m, IsProxyAddressEnumerator o, IsProxyResolver a) => o -> a -> m () Source #
Set the value of the “proxy-resolver
” property.
When overloading is enabled, this is equivalent to
set
proxyAddressEnumerator [ #proxyResolver:=
value ]
uri
No description available in the introspection data.
constructProxyAddressEnumeratorUri :: (IsProxyAddressEnumerator o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “uri
” property. This is rarely needed directly, but it is used by new
.
getProxyAddressEnumeratorUri :: (MonadIO m, IsProxyAddressEnumerator o) => o -> m (Maybe Text) Source #
Get the value of the “uri
” property.
When overloading is enabled, this is equivalent to
get
proxyAddressEnumerator #uri