def get_server(request):
    """Given a request, parse it to determine the server name and using http/https"""
    scheme = request.is_secure() and "https" or "http"
    return f"{scheme}://{request.get_host()}"