code: public function getNormalizedHttpUrl()
      {
          $parts = parse_url($this->httpUrl);
  
          $scheme = $parts['scheme'];
          $host = strtolower($parts['host']);
          $path = $parts['path'];
  
          return "$scheme://$host$path";
      }
docs: parses the url and rebuilds it to be
  scheme://host/path
  
  @return string