def get_uri(self, request):
protocol = request.protocol_overrideif request.protocol_override else self.protocol<EOL>protocol = protocol.lower()<EOL>port = HTTP_PORT if protocol == '<STR_LIT:http>' else HTTPS_PORT<EOL>return protocol + '<STR_LIT>' + request.host + '<STR_LIT::>' + str(port) + request.path<EOL>
Return the target uri for the request.