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:
objectBase 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, ...])Constructs the base path of the current config
Formats the context field
- return
the port information to be appended to the built URL
Attributes
DEFAULT_HTTPS_PORTDEFAULT_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