set_proxy method
Use this method to configure Eyes so that it will interact with the Eyes server via a proxy.
By default, the SDK interacts directly with the Eyes server. If necessary, you can define a proxy server so that the SDK will interact with the proxy server, and the proxy server will relay the interaction to the Eyes server.
Syntax
configval = config.set_proxy(proxy)
config.proxy = configval
configval = config.proxy
Note that this feature is available as both a method and a property.
Parameters
- proxy
- Type:ProxySettings [Optional ]
- An object created from the ProxySettings class that contains the user name, password, URI and port.
Return value
- Type: Self
-
The value returned is the object that called the method.
This allows you to use a fluent style to call the
setXXXX
methods of the Configuration class.