Method | Description | |
---|---|---|
isEquivalent ( Psr\Http\Message\UriInterface $uri1, Psr\Http\Message\UriInterface $uri2, integer $normalizations = self::PRESERVING_NORMALIZATIONS ) : boolean | Whether two URIs can be considered equivalent. | |
normalize ( Psr\Http\Message\UriInterface $uri, integer $flags = self::PRESERVING_NORMALIZATIONS ) : Psr\Http\Message\UriInterface | Returns a normalized URI. |
Method | Description | |
---|---|---|
__construct ( ) | ||
capitalizePercentEncoding ( Psr\Http\Message\UriInterface $uri ) | ||
decodeUnreservedCharacters ( Psr\Http\Message\UriInterface $uri ) |
public static isEquivalent ( Psr\Http\Message\UriInterface $uri1, Psr\Http\Message\UriInterface $uri2, integer $normalizations = self::PRESERVING_NORMALIZATIONS ) : boolean | ||
$uri1 | Psr\Http\Message\UriInterface | An URI to compare |
$uri2 | Psr\Http\Message\UriInterface | An URI to compare |
$normalizations | integer | A bitmask of normalizations to apply, see constants |
return | boolean |
public static normalize ( Psr\Http\Message\UriInterface $uri, integer $flags = self::PRESERVING_NORMALIZATIONS ) : Psr\Http\Message\UriInterface | ||
$uri | Psr\Http\Message\UriInterface | The URI to normalize |
$flags | integer | A bitmask of normalizations to apply, see constants |
return | Psr\Http\Message\UriInterface | The normalized URI |