gio.proxy_address

Module for [ProxyAddress] class

Types 3

A [gio.inet_socket_address.InetSocketAddress] representing a connection via a proxy server.

Methods
GType _gType() @property
ProxyAddress self()Returns `this`, for use in `with` statements.
ProxyAddressGidBuilder builder()Get builder for [gio.proxy_address.ProxyAddress] Returns: New builder object
string destinationHostname() @propertyGet `destinationHostname` property. Returns: The proxy destination hostname.
uint destinationPort() @propertyGet `destinationPort` property. Returns: The proxy destination port.
string destinationProtocol() @propertyGet `destinationProtocol` property. Returns: The protocol being spoke to the destination host, or null if the #GProxyAddress doesn't know.
string password() @propertyGet `password` property. Returns: The proxy password.
string protocol() @propertyGet `protocol` property. Returns: The proxy protocol.
string uri() @propertyGet `uri` property. Returns: The URI string that the proxy was constructed from (or null if the creator didn't specify this).
string username() @propertyGet `username` property. Returns: The proxy username.
string getDestinationHostname()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. Returns: the proxy's destination hostname
ushort getDestinationPort()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. Returns: the proxy's destination port
string getDestinationProtocol()Gets the protocol that is being spoken to the destination server; eg, "http" or "ftp". Returns: the proxy's destination protocol
string getPassword()Gets proxy's password. Returns: the proxy's password
string getProtocol()Gets proxy's protocol. eg, "socks" or "http" Returns: the proxy's protocol
string getUri()Gets the proxy URI that proxy was constructed from. Returns: the proxy's URI, or null if unknown
string getUsername()Gets proxy's username. Returns: the proxy's username
Constructors
this(void * ptr, Flag!"Take" take)
this(gio.inet_address.InetAddress inetaddr, ushort port, string protocol, string destHostname, ushort destPort, string username = null, string password = null)Creates a new #GProxyAddress for inetaddr with protocol that should tunnel through desthostname and destport.
Methods
T destinationHostname(string propval)Set `destinationHostname` property. Params: propval = The proxy destination hostname. Returns: Builder instance for fluent chaining
T destinationPort(uint propval)Set `destinationPort` property. Params: propval = The proxy destination port. Returns: Builder instance for fluent chaining
T destinationProtocol(string propval)Set `destinationProtocol` property. Params: propval = The protocol being spoke to the destination host, or null if the #GProxyAddress doesn't know. Returns: Builder instance for fluent chaining
T password(string propval)Set `password` property. Params: propval = The proxy password. Returns: Builder instance for fluent chaining
T protocol(string propval)Set `protocol` property. Params: propval = The proxy protocol. Returns: Builder instance for fluent chaining
T uri(string propval)Set `uri` property. Params: propval = The URI string that the proxy was constructed from (or null if the creator didn't specify this). Returns: Builder instance for fluent chaining
T username(string propval)Set `username` property. Params: propval = The proxy username. Returns: Builder instance for fluent chaining

Fluent builder for [gio.proxy_address.ProxyAddress]