Skip to main content

ProxySettings class

An object used to set and retrieve the details of the proxy server used to interact with the Eyes server.

To set a proxy server, create an object of this type and pass it to the setProxy method.

Require statement

const {ProxySettings} = require('@applitools/eyes-images');

ProxySettings method

Syntax

let proxySettings = new ProxySettings(uri, username, password, isHttpOnly);

let proxySettings = new ProxySettings(uri, username, password);

let proxySettings = new ProxySettings(uri, username);

let proxySettings = new ProxySettings(uri);

Parameters

uri

Type:

string|boolean

The proxy's server URI.

username

Type: string [Optional ]

The username to be sent to the proxy (default null).

password

Type: string [Optional ]

The password to be sent to the proxy (default null).

isHttpOnly

Type: boolean [Optional ]

A value of true specifies that the SDK should communicate with the server using an http tunnel. Use this if your http proxy blocks https communication.

Return value

Type: ProxySettings

getIsDisabled method

Syntax

proxySettings.getIsDisabled();

Parameters

This method does not take any parameters.

Return value

Type:

getIsHttpOnly method

Syntax

proxySettings.getIsHttpOnly();

Parameters

This method does not take any parameters.

Return value

Type:

getPassword method

Syntax

proxySettings.getPassword();

Parameters

This method does not take any parameters.

Return value

Type:

getUri method

Syntax

proxySettings.getUri();

Parameters

This method does not take any parameters.

Return value

Type:

getUsername method

Syntax

proxySettings.getUsername();

Parameters

This method does not take any parameters.

Return value

Type: