You are here

public static function Uri::isNetworkPathReference in Auth0 Single Sign On 8.2

Whether the URI is a network-path reference.

A relative reference that begins with two slash characters is termed an network-path reference.

@link https://tools.ietf.org/html/rfc3986#section-4.2

Parameters

UriInterface $uri:

Return value

bool

File

vendor/guzzlehttp/psr7/src/Uri.php, line 189

Class

Uri
PSR-7 URI implementation.

Namespace

GuzzleHttp\Psr7

Code

public static function isNetworkPathReference(UriInterface $uri) {
  return $uri
    ->getScheme() === '' && $uri
    ->getAuthority() !== '';
}