def _build_https_url(self, request):
        url = request.build_absolute_uri(request.get_full_path())
        return re.sub(r'^http', 'https', url)
Get the full url, replace http with https
dataset/ETHPy150Open brack3t/django-braces/braces/views/_access.py/SSLRequiredMixin._build_https_url