3đź‘Ť
âś…
You could try a combination of HttpRequest.get_host()
to get the host:port (“www.domain.com”) and HttpRequest.is_secure()
to see if the request was made over http or https. This should allow you to reconstruct a URL like https://www.domain.com:8080
👤vinod
Source:stackexchange.com