code: def path_url(self):
          
  
          url = []
  
          p = urlsplit(self.full_url)
  
          # Proxies use full URLs.
          if p.scheme in self.proxies:
              return self.full_url
  
          path = p.path
          if not path:
              path = '/'
          url.append(path)
  
          query = p.query
          if query:
              url.append('?')
              url.append(query)
  
          return ''.join(url)
docs: Build the path URL to use.