'Return the target uri for the request.'

def get_uri(self, request):

    protocol = (request.protocol_override if request.protocol_override else self.protocol)
    protocol = protocol.lower()
    port = (HTTP_PORT if (protocol == 'http') else HTTPS_PORT)
    return (((((protocol + '://') + request.host) + ':') + str(port)) + request.path)
