gio.proxy_address
Module for [ProxyAddress] class
Types 3
A [gio.inet_socket_address.InetSocketAddress] representing a connection via a proxy server.
Methods
ProxyAddress self()Returns `this`, for use in `with` statements.ProxyAddressGidBuilder builder()Get builder for [gio.proxy_address.ProxyAddress] Returns: New builder objectstring 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 uri() @propertyGet `uri` property. Returns: The URI string that the proxy was constructed from (or null if the creator didn't specify this).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 hostnameushort 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 portstring getDestinationProtocol()Gets the protocol that is being spoken to the destination server; eg, "http" or "ftp". Returns: the proxy's destination protocolstring getPassword()Gets proxy's password. Returns: the proxy's passwordstring getProtocol()Gets proxy's protocol. eg, "socks" or "http" Returns: the proxy's protocolstring getUri()Gets the proxy URI that proxy was constructed from. Returns: the proxy's URI, or null if unknownstring getUsername()Gets proxy's username. Returns: the proxy's usernameConstructors
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 chainingT destinationPort(uint propval)Set `destinationPort` property. Params: propval = The proxy destination port. Returns: Builder instance for fluent chainingT 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 chainingT password(string propval)Set `password` property. Params: propval = The proxy password. Returns: Builder instance for fluent chainingT protocol(string propval)Set `protocol` property. Params: propval = The proxy protocol. Returns: Builder instance for fluent chainingT 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 chainingT username(string propval)Set `username` property. Params: propval = The proxy username. Returns: Builder instance for fluent chainingFluent builder for [gio.proxy_address.ProxyAddress]
Methods