Amp\Artax\Uri::normalize PHP Method

normalize() public method

Normalizes the URI for maximal comparison success
public normalize ( ) : string
return string
    public function normalize()
    {
        if (!$this->uri) {
            return '';
        }
        $path = $this->path ?: '/';
        $path = $this->removeDotSegments($path);
        $path = $this->decodeUnreservedCharacters($path);
        $path = $this->decodeReservedSubDelimiters($path);
        return $this->reconstitute($this->scheme, $this->getAuthority(), $path, $this->query, $this->fragment);
    }