gio.proxy_address

Module for [ProxyAddress] class

Types 3

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

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
ProxyAddress self() nothrowReturns `this`, for use in `with` statements.
ProxyAddressGidBuilder builder() static nothrowGet builder for [gio.proxy_address.ProxyAddress] Returns: New builder object
string destinationHostname() @property nothrowGet `destinationHostname` property. Returns: The proxy destination hostname.
uint destinationPort() @property nothrowGet `destinationPort` property. Returns: The proxy destination port.
string destinationProtocol() @property nothrowGet `destinationProtocol` property. Returns: The protocol being spoke to the destination host, or null if the #GProxyAddress doesn't know.
string password() @property nothrowGet `password` property. Returns: The proxy password.
string protocol() @property nothrowGet `protocol` property. Returns: The proxy protocol.
string uri() @property nothrowGet `uri` property. Returns: The URI string that the proxy was constructed from (or null if the creator didn't specify this).
string username() @property nothrowGet `username` property. Returns: The proxy username.
string getDestinationHostname() nothrowGets 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() nothrowGets 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() nothrowGets the protocol that is being spoken to the destination server; eg, "http" or "ftp". Returns: the proxy's destination protocol
string getPassword() nothrowGets proxy's password. Returns: the proxy's password
string getProtocol() nothrowGets proxy's protocol. eg, "socks" or "http" Returns: the proxy's protocol
string getUri() nothrowGets the proxy URI that proxy was constructed from. Returns: the proxy's URI, or null if unknown
string getUsername() nothrowGets 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 dest_hostname and dest_port.

Fluent builder implementation template for gio.proxy_address.ProxyAddress

Methods
T destinationHostname(string propval) nothrowSet `destinationHostname` property. Params: propval = The proxy destination hostname. Returns: Builder instance for fluent chaining
T destinationPort(uint propval) nothrowSet `destinationPort` property. Params: propval = The proxy destination port. Returns: Builder instance for fluent chaining
T destinationProtocol(string propval) nothrowSet `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) nothrowSet `password` property. Params: propval = The proxy password. Returns: Builder instance for fluent chaining
T protocol(string propval) nothrowSet `protocol` property. Params: propval = The proxy protocol. Returns: Builder instance for fluent chaining
T uri(string propval) nothrowSet `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) nothrowSet `username` property. Params: propval = The proxy username. Returns: Builder instance for fluent chaining
Methods
ProxyAddress build() nothrowCreate object from builder. Returns: New object