docs: def clean_service_url(url):
      """
      Return only the scheme, hostname (with optional port) and path
      components of the parameter URL.
      """
      parts = urlparse(url)
      return urlunparse((parts.scheme, parts.netloc, parts.path, '', '', ''))