symphony.bdk.core.config.model.bdk_server_config.BdkProxyConfig#

class symphony.bdk.core.config.model.bdk_server_config.BdkProxyConfig(host, port, username=None, password=None)#

Bases: object

Class to configure a proxy with a host, port and optional proxy credentials

__init__(host, port, username=None, password=None)#
Parameters
  • host – host of the proxy (mandatory)

  • port – port of the proxy (mandatory)

  • username – username for proxy basic authentication (optional)

  • password – password for proxy basic authentication (optional, must be not None if username specified)

Methods

__init__(host, port[, username, password])

param host

host of the proxy (mandatory)

are_credentials_defined()

Check if proxy credentials were set

get_credentials()

Builds the credentials information to pass to the proxy-authorization header before base64 encoding.

get_url()

Builds the proxy URL.

are_credentials_defined()#

Check if proxy credentials were set

Returns

True if username and password set

get_credentials()#

Builds the credentials information to pass to the proxy-authorization header before base64 encoding.

Returns

username + “:” + password

get_url()#

Builds the proxy URL.

Returns

the URL of the http proxy to target