MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / server_host

Function server_host

keepercommander/rest_api.py:171–175  ·  view source on GitHub ↗

Lower-case host[:port] of a server name or URL.

(server)

Source from the content-addressed store, hash-verified

169
170
171def server_host(server): # type: (str) -> str
172 """Lower-case host[:port] of a server name or URL."""
173 if '://' not in server:
174 server = 'https://' + server
175 return urlparse(server).netloc.lower()
176
177
178def is_keeper_cloud_host(server): # type: (str) -> bool

Callers 9

is_keeper_cloud_hostFunction · 0.85
set_server_public_keyFunction · 0.85
clear_server_public_keyFunction · 0.85
is_server_insecureFunction · 0.85
set_server_insecureFunction · 0.85
refetch_server_keyFunction · 0.85
self_managed_key_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected