You are here

constant UriNormalizer::REMOVE_DEFAULT_HOST in Lockr 7.3

Removes the default host of the given URI scheme from the URI.

Only the "file" scheme defines the default host "localhost". All of `file:/myfile`, `file:///myfile`, and `file://localhost/myfile` are equivalent according to RFC 3986. The first format is not accepted by PHPs stream functions and thus already normalized implicitly to the second format in the Uri class. See `GuzzleHttp\Psr7\Uri::composeComponents`.

Example: file://localhost/myfile → file:///myfile

File

vendor/guzzlehttp/psr7/src/UriNormalizer.php, line 59

Class

UriNormalizer
Provides methods to normalize and compare URIs.

Namespace

GuzzleHttp\Psr7

Code

const REMOVE_DEFAULT_HOST = 8;