Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
Support for proxied InetSocketAddress
.
- newtype ProxyAddress = ProxyAddress (ManagedPtr ProxyAddress)
- class GObject o => IsProxyAddress o
- toProxyAddress :: IsProxyAddress o => o -> IO ProxyAddress
- noProxyAddress :: Maybe ProxyAddress
- data ProxyAddressGetDestinationHostnameMethodInfo
- proxyAddressGetDestinationHostname :: (HasCallStack, MonadIO m, IsProxyAddress a) => a -> m Text
- data ProxyAddressGetDestinationPortMethodInfo
- proxyAddressGetDestinationPort :: (HasCallStack, MonadIO m, IsProxyAddress a) => a -> m Word16
- data ProxyAddressGetDestinationProtocolMethodInfo
- proxyAddressGetDestinationProtocol :: (HasCallStack, MonadIO m, IsProxyAddress a) => a -> m Text
- data ProxyAddressGetPasswordMethodInfo
- proxyAddressGetPassword :: (HasCallStack, MonadIO m, IsProxyAddress a) => a -> m Text
- data ProxyAddressGetProtocolMethodInfo
- proxyAddressGetProtocol :: (HasCallStack, MonadIO m, IsProxyAddress a) => a -> m Text
- data ProxyAddressGetUriMethodInfo
- proxyAddressGetUri :: (HasCallStack, MonadIO m, IsProxyAddress a) => a -> m Text
- data ProxyAddressGetUsernameMethodInfo
- 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
- data ProxyAddressDestinationHostnamePropertyInfo
- constructProxyAddressDestinationHostname :: IsProxyAddress o => Text -> IO (GValueConstruct o)
- getProxyAddressDestinationHostname :: (MonadIO m, IsProxyAddress o) => o -> m Text
- proxyAddressDestinationHostname :: AttrLabelProxy "destinationHostname"
- data ProxyAddressDestinationPortPropertyInfo
- constructProxyAddressDestinationPort :: IsProxyAddress o => Word32 -> IO (GValueConstruct o)
- getProxyAddressDestinationPort :: (MonadIO m, IsProxyAddress o) => o -> m Word32
- proxyAddressDestinationPort :: AttrLabelProxy "destinationPort"
- data ProxyAddressDestinationProtocolPropertyInfo
- constructProxyAddressDestinationProtocol :: IsProxyAddress o => Text -> IO (GValueConstruct o)
- getProxyAddressDestinationProtocol :: (MonadIO m, IsProxyAddress o) => o -> m Text
- proxyAddressDestinationProtocol :: AttrLabelProxy "destinationProtocol"
- data ProxyAddressPasswordPropertyInfo
- constructProxyAddressPassword :: IsProxyAddress o => Text -> IO (GValueConstruct o)
- getProxyAddressPassword :: (MonadIO m, IsProxyAddress o) => o -> m Text
- proxyAddressPassword :: AttrLabelProxy "password"
- data ProxyAddressProtocolPropertyInfo
- constructProxyAddressProtocol :: IsProxyAddress o => Text -> IO (GValueConstruct o)
- getProxyAddressProtocol :: (MonadIO m, IsProxyAddress o) => o -> m Text
- proxyAddressProtocol :: AttrLabelProxy "protocol"
- data ProxyAddressUriPropertyInfo
- constructProxyAddressUri :: IsProxyAddress o => Text -> IO (GValueConstruct o)
- getProxyAddressUri :: (MonadIO m, IsProxyAddress o) => o -> m Text
- proxyAddressUri :: AttrLabelProxy "uri"
- data ProxyAddressUsernamePropertyInfo
- constructProxyAddressUsername :: IsProxyAddress o => Text -> IO (GValueConstruct o)
- getProxyAddressUsername :: (MonadIO m, IsProxyAddress o) => o -> m Text
- proxyAddressUsername :: AttrLabelProxy "username"
Exported types
newtype ProxyAddress Source #
GObject ProxyAddress Source # | |
IsObject ProxyAddress Source # | |
IsSocketAddress ProxyAddress Source # | |
IsProxyAddress ProxyAddress Source # | |
IsInetSocketAddress ProxyAddress Source # | |
IsSocketConnectable ProxyAddress Source # | |
((~) * info (ResolveProxyAddressMethod t ProxyAddress), MethodInfo * info ProxyAddress p) => IsLabel t (ProxyAddress -> p) Source # | |
((~) * info (ResolveProxyAddressMethod t ProxyAddress), MethodInfo * info ProxyAddress p) => IsLabelProxy t (ProxyAddress -> p) Source # | |
HasAttributeList * ProxyAddress Source # | |
type AttributeList ProxyAddress Source # | |
type SignalList ProxyAddress Source # | |
class GObject o => IsProxyAddress o Source #
toProxyAddress :: IsProxyAddress o => o -> IO ProxyAddress Source #
Methods
getDestinationHostname
data ProxyAddressGetDestinationHostnameMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsProxyAddress a) => MethodInfo * ProxyAddressGetDestinationHostnameMethodInfo a signature Source # | |
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
data ProxyAddressGetDestinationPortMethodInfo Source #
((~) * signature (m Word16), MonadIO m, IsProxyAddress a) => MethodInfo * ProxyAddressGetDestinationPortMethodInfo a signature Source # | |
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
data ProxyAddressGetDestinationProtocolMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsProxyAddress a) => MethodInfo * ProxyAddressGetDestinationProtocolMethodInfo a signature Source # | |
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
data ProxyAddressGetPasswordMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsProxyAddress a) => MethodInfo * ProxyAddressGetPasswordMethodInfo a signature Source # | |
proxyAddressGetPassword Source #
:: (HasCallStack, MonadIO m, IsProxyAddress a) | |
=> a |
|
-> m Text | Returns: the |
Gets proxy
's password.
Since: 2.26
getProtocol
data ProxyAddressGetProtocolMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsProxyAddress a) => MethodInfo * ProxyAddressGetProtocolMethodInfo a signature Source # | |
proxyAddressGetProtocol Source #
:: (HasCallStack, MonadIO m, IsProxyAddress a) | |
=> a |
|
-> m Text | Returns: the |
Gets proxy
's protocol. eg, "socks" or "http"
Since: 2.26
getUri
data ProxyAddressGetUriMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsProxyAddress a) => MethodInfo * ProxyAddressGetUriMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsProxyAddress a) | |
=> a |
|
-> m Text | Returns: the |
Gets the proxy URI that proxy
was constructed from.
Since: 2.34
getUsername
data ProxyAddressGetUsernameMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsProxyAddress a) => MethodInfo * ProxyAddressGetUsernameMethodInfo a signature Source # | |
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
data ProxyAddressDestinationHostnamePropertyInfo Source #
constructProxyAddressDestinationHostname :: IsProxyAddress o => Text -> IO (GValueConstruct o) Source #
getProxyAddressDestinationHostname :: (MonadIO m, IsProxyAddress o) => o -> m Text Source #
proxyAddressDestinationHostname :: AttrLabelProxy "destinationHostname" Source #
destinationPort
data ProxyAddressDestinationPortPropertyInfo Source #
constructProxyAddressDestinationPort :: IsProxyAddress o => Word32 -> IO (GValueConstruct o) Source #
getProxyAddressDestinationPort :: (MonadIO m, IsProxyAddress o) => o -> m Word32 Source #
proxyAddressDestinationPort :: AttrLabelProxy "destinationPort" Source #
destinationProtocol
data ProxyAddressDestinationProtocolPropertyInfo Source #
constructProxyAddressDestinationProtocol :: IsProxyAddress o => Text -> IO (GValueConstruct o) Source #
getProxyAddressDestinationProtocol :: (MonadIO m, IsProxyAddress o) => o -> m Text Source #
proxyAddressDestinationProtocol :: AttrLabelProxy "destinationProtocol" Source #
password
data ProxyAddressPasswordPropertyInfo Source #
constructProxyAddressPassword :: IsProxyAddress o => Text -> IO (GValueConstruct o) Source #
getProxyAddressPassword :: (MonadIO m, IsProxyAddress o) => o -> m Text Source #
proxyAddressPassword :: AttrLabelProxy "password" Source #
protocol
data ProxyAddressProtocolPropertyInfo Source #
constructProxyAddressProtocol :: IsProxyAddress o => Text -> IO (GValueConstruct o) Source #
getProxyAddressProtocol :: (MonadIO m, IsProxyAddress o) => o -> m Text Source #
proxyAddressProtocol :: AttrLabelProxy "protocol" Source #
uri
data ProxyAddressUriPropertyInfo Source #
constructProxyAddressUri :: IsProxyAddress o => Text -> IO (GValueConstruct o) Source #
getProxyAddressUri :: (MonadIO m, IsProxyAddress o) => o -> m Text Source #
proxyAddressUri :: AttrLabelProxy "uri" Source #
username
data ProxyAddressUsernamePropertyInfo Source #
constructProxyAddressUsername :: IsProxyAddress o => Text -> IO (GValueConstruct o) Source #
getProxyAddressUsername :: (MonadIO m, IsProxyAddress o) => o -> m Text Source #
proxyAddressUsername :: AttrLabelProxy "username" Source #