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 |
Support for proxied InetSocketAddress
.
Since: 2.26
Synopsis
- newtype ProxyAddress = ProxyAddress (ManagedPtr ProxyAddress)
- class (GObject o, IsDescendantOf ProxyAddress o) => IsProxyAddress o
- toProxyAddress :: (MonadIO m, IsProxyAddress o) => o -> m ProxyAddress
- noProxyAddress :: Maybe ProxyAddress
- proxyAddressGetDestinationHostname :: (HasCallStack, MonadIO m, IsProxyAddress a) => a -> m Text
- proxyAddressGetDestinationPort :: (HasCallStack, MonadIO m, IsProxyAddress a) => a -> m Word16
- proxyAddressGetDestinationProtocol :: (HasCallStack, MonadIO m, IsProxyAddress a) => a -> m Text
- proxyAddressGetPassword :: (HasCallStack, MonadIO m, IsProxyAddress a) => a -> m Text
- proxyAddressGetProtocol :: (HasCallStack, MonadIO m, IsProxyAddress a) => a -> m Text
- proxyAddressGetUri :: (HasCallStack, MonadIO m, IsProxyAddress a) => a -> m Text
- proxyAddressGetUsername :: (HasCallStack, MonadIO m, IsProxyAddress a) => a -> m Text
- proxyAddressNew :: (HasCallStack, MonadIO m, IsInetAddress a) => a -> Word16 -> Text -> Text -> Word16 -> Maybe Text -> Maybe Text -> m ProxyAddress
- constructProxyAddressDestinationHostname :: IsProxyAddress o => Text -> IO (GValueConstruct o)
- getProxyAddressDestinationHostname :: (MonadIO m, IsProxyAddress o) => o -> m Text
- constructProxyAddressDestinationPort :: IsProxyAddress o => Word32 -> IO (GValueConstruct o)
- getProxyAddressDestinationPort :: (MonadIO m, IsProxyAddress o) => o -> m Word32
- constructProxyAddressDestinationProtocol :: IsProxyAddress o => Text -> IO (GValueConstruct o)
- getProxyAddressDestinationProtocol :: (MonadIO m, IsProxyAddress o) => o -> m Text
- constructProxyAddressPassword :: IsProxyAddress o => Text -> IO (GValueConstruct o)
- getProxyAddressPassword :: (MonadIO m, IsProxyAddress o) => o -> m Text
- constructProxyAddressProtocol :: IsProxyAddress o => Text -> IO (GValueConstruct o)
- getProxyAddressProtocol :: (MonadIO m, IsProxyAddress o) => o -> m Text
- constructProxyAddressUri :: IsProxyAddress o => Text -> IO (GValueConstruct o)
- getProxyAddressUri :: (MonadIO m, IsProxyAddress o) => o -> m Text
- constructProxyAddressUsername :: IsProxyAddress o => Text -> IO (GValueConstruct o)
- getProxyAddressUsername :: (MonadIO m, IsProxyAddress o) => o -> m Text
Exported types
newtype ProxyAddress Source #
Memory-managed wrapper type.
Instances
Eq ProxyAddress Source # | |
Defined in GI.Gio.Objects.ProxyAddress (==) :: ProxyAddress -> ProxyAddress -> Bool # (/=) :: ProxyAddress -> ProxyAddress -> Bool # | |
GObject ProxyAddress Source # | |
Defined in GI.Gio.Objects.ProxyAddress gobjectType :: IO GType # | |
IsGValue ProxyAddress Source # | Convert |
Defined in GI.Gio.Objects.ProxyAddress toGValue :: ProxyAddress -> IO GValue # fromGValue :: GValue -> IO ProxyAddress # | |
HasParentTypes ProxyAddress Source # | |
Defined in GI.Gio.Objects.ProxyAddress | |
type ParentTypes ProxyAddress Source # | |
Defined in GI.Gio.Objects.ProxyAddress |
class (GObject o, IsDescendantOf ProxyAddress o) => IsProxyAddress o Source #
Type class for types which can be safely cast to ProxyAddress
, for instance with toProxyAddress
.
Instances
(GObject o, IsDescendantOf ProxyAddress o) => IsProxyAddress o Source # | |
Defined in GI.Gio.Objects.ProxyAddress |
toProxyAddress :: (MonadIO m, IsProxyAddress o) => o -> m ProxyAddress Source #
Cast to ProxyAddress
, for types for which this is known to be safe. For general casts, use castTo
.
noProxyAddress :: Maybe ProxyAddress Source #
A convenience alias for Nothing
:: Maybe
ProxyAddress
.
Methods
Overloaded methods
getDestinationHostname
proxyAddressGetDestinationHostname Source #
:: (HasCallStack, MonadIO m, IsProxyAddress a) | |
=> a |
|
-> m Text | Returns: the |
Gets proxy
's destination hostname; that is, the name of the host
that will be connected to via the proxy, not the name of the proxy
itself.
Since: 2.26
getDestinationPort
proxyAddressGetDestinationPort Source #
:: (HasCallStack, MonadIO m, IsProxyAddress a) | |
=> a |
|
-> m Word16 | Returns: the |
Gets proxy
's destination port; that is, the port on the
destination host that will be connected to via the proxy, not the
port number of the proxy itself.
Since: 2.26
getDestinationProtocol
proxyAddressGetDestinationProtocol Source #
:: (HasCallStack, MonadIO m, IsProxyAddress a) | |
=> a |
|
-> m Text | Returns: the |
Gets the protocol that is being spoken to the destination server; eg, "http" or "ftp".
Since: 2.34
getPassword
proxyAddressGetPassword Source #
:: (HasCallStack, MonadIO m, IsProxyAddress a) | |
=> a |
|
-> m Text | Returns: the |
Gets proxy
's password.
Since: 2.26
getProtocol
proxyAddressGetProtocol Source #
:: (HasCallStack, MonadIO m, IsProxyAddress a) | |
=> a |
|
-> m Text | Returns: the |
Gets proxy
's protocol. eg, "socks" or "http"
Since: 2.26
getUri
:: (HasCallStack, MonadIO m, IsProxyAddress a) | |
=> a |
|
-> m Text | Returns: the |
Gets the proxy URI that proxy
was constructed from.
Since: 2.34
getUsername
proxyAddressGetUsername Source #
:: (HasCallStack, MonadIO m, IsProxyAddress a) | |
=> a |
|
-> m Text | Returns: the |
Gets proxy
's username.
Since: 2.26
new
:: (HasCallStack, MonadIO m, IsInetAddress a) | |
=> a |
|
-> Word16 |
|
-> Text |
|
-> Text |
|
-> Word16 |
|
-> Maybe Text |
|
-> Maybe Text |
|
-> m ProxyAddress | Returns: a new |
Creates a new ProxyAddress
for inetaddr
with protocol
that should
tunnel through destHostname
and destPort
.
(Note that this method doesn't set the ProxyAddress
:uri
or
ProxyAddress
:destination-protocol
fields; use g_object_new()
directly if you want to set those.)
Since: 2.26
Properties
destinationHostname
No description available in the introspection data.
constructProxyAddressDestinationHostname :: IsProxyAddress o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “destination-hostname
” property. This is rarely needed directly, but it is used by new
.
getProxyAddressDestinationHostname :: (MonadIO m, IsProxyAddress o) => o -> m Text Source #
Get the value of the “destination-hostname
” property.
When overloading is enabled, this is equivalent to
get
proxyAddress #destinationHostname
destinationPort
No description available in the introspection data.
constructProxyAddressDestinationPort :: IsProxyAddress o => Word32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “destination-port
” property. This is rarely needed directly, but it is used by new
.
getProxyAddressDestinationPort :: (MonadIO m, IsProxyAddress o) => o -> m Word32 Source #
Get the value of the “destination-port
” property.
When overloading is enabled, this is equivalent to
get
proxyAddress #destinationPort
destinationProtocol
The protocol being spoke to the destination host, or Nothing
if
the ProxyAddress
doesn't know.
Since: 2.34
constructProxyAddressDestinationProtocol :: IsProxyAddress o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “destination-protocol
” property. This is rarely needed directly, but it is used by new
.
getProxyAddressDestinationProtocol :: (MonadIO m, IsProxyAddress o) => o -> m Text Source #
Get the value of the “destination-protocol
” property.
When overloading is enabled, this is equivalent to
get
proxyAddress #destinationProtocol
password
No description available in the introspection data.
constructProxyAddressPassword :: IsProxyAddress o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “password
” property. This is rarely needed directly, but it is used by new
.
getProxyAddressPassword :: (MonadIO m, IsProxyAddress o) => o -> m Text Source #
Get the value of the “password
” property.
When overloading is enabled, this is equivalent to
get
proxyAddress #password
protocol
No description available in the introspection data.
constructProxyAddressProtocol :: IsProxyAddress o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “protocol
” property. This is rarely needed directly, but it is used by new
.
getProxyAddressProtocol :: (MonadIO m, IsProxyAddress o) => o -> m Text Source #
Get the value of the “protocol
” property.
When overloading is enabled, this is equivalent to
get
proxyAddress #protocol
uri
The URI string that the proxy was constructed from (or Nothing
if the creator didn't specify this).
Since: 2.34
constructProxyAddressUri :: IsProxyAddress o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “uri
” property. This is rarely needed directly, but it is used by new
.
getProxyAddressUri :: (MonadIO m, IsProxyAddress o) => o -> m Text Source #
Get the value of the “uri
” property.
When overloading is enabled, this is equivalent to
get
proxyAddress #uri
username
No description available in the introspection data.
constructProxyAddressUsername :: IsProxyAddress o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “username
” property. This is rarely needed directly, but it is used by new
.
getProxyAddressUsername :: (MonadIO m, IsProxyAddress o) => o -> m Text Source #
Get the value of the “username
” property.
When overloading is enabled, this is equivalent to
get
proxyAddress #username