code: def _get_request_uri(self, request):
          
          request_uri = request['target']
          if request_uri.startswith('/'):  # eg. GET /index.html
              return (request.get('Host', 'localhost').split(':')[0],
                      request_uri[1:])
          elif '://' in request_uri:  # eg. GET http://rded.nl
              locator = request_uri.split('://', 1)[1]
              host, path = locator.split('/', 1)
              return (host.split(':')[0], path)
docs: Parse the request URI into something useful
  
          Server MUST accept full URIs (5.1.2)