Skip to content
Snippets Groups Projects

#139: Endpoints: renamings

Merged Moul requested to merge 139_endpoints_host into dev
Files
4
+ 6
6
@@ -189,17 +189,17 @@ class API:
# remove starting slash in path if present
path = path.lstrip("/")
server, port = self.connection_handler.server, self.connection_handler.port
address, port = self.connection_handler.address, self.connection_handler.port
if self.connection_handler.path:
url = "{scheme}://{server}:{port}/{api_path}".format(
url = "{scheme}://{address}:{port}/{api_path}".format(
scheme=scheme,
server=server,
address=address,
port=port,
api_path=self.connection_handler.path,
)
else:
url = "{scheme}://{server}:{port}".format(
scheme=scheme, server=server, port=port
url = "{scheme}://{address}:{port}".format(
scheme=scheme, address=address, port=port
)
if len(path.strip()) > 0:
@@ -332,7 +332,7 @@ class Client:
Init Client instance
:param _endpoint: Endpoint string in duniter format
:param proxy: Proxy server as hostname:port (optional, default None)
:param proxy: Proxy address as hostname:port (optional, default None)
"""
if isinstance(_endpoint, str):
# Endpoint Protocol detection
Loading