public static function Uri::isAbsolute in Auth0 Single Sign On 8.2
Whether the URI is absolute, i.e. it has a scheme.
An instance of UriInterface can either be an absolute URI or a relative reference. This method returns true if it is the former. An absolute URI has a scheme. A relative reference is used to express a URI relative to another URI, the base URI. Relative references can be divided into several forms:
- network-path references, e.g. '//example.com/path'
- absolute-path references, e.g. '/path'
- relative-path references, e.g. 'subpath'
@link https://tools.ietf.org/html/rfc3986#section-4
Parameters
UriInterface $uri:
Return value
bool
See also
Uri::isNetworkPathReference
Uri::isAbsolutePathReference
Uri::isRelativePathReference
File
- vendor/
guzzlehttp/ psr7/ src/ Uri.php, line 174
Class
- Uri
- PSR-7 URI implementation.
Namespace
GuzzleHttp\Psr7Code
public static function isAbsolute(UriInterface $uri) {
return $uri
->getScheme() !== '';
}