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

class symphony.bdk.core.config.model.bdk_server_config.BdkServerConfig(scheme=None, port=None, context='', host=None, proxy=None, default_headers=None)#

Bases: object

Base class for server and client configurations

__init__(scheme=None, port=None, context='', host=None, proxy=None, default_headers=None)#

Methods

__init__([scheme, port, context, host, ...])

get_base_path()

Constructs the base path of the current config

get_formatted_context()

Formats the context field

get_port_as_string()

return

the port information to be appended to the built URL

Attributes

DEFAULT_HTTPS_PORT

DEFAULT_SCHEME

get_base_path() str#

Constructs the base path of the current config

Returns

scheme://host:port + formatted_context

Return type

str

get_formatted_context() str#

Formats the context field

Returns

“/” + context if the context is not empty

Return type

str

get_port_as_string() str#
Returns

the port information to be appended to the built URL