You are here

public function UriInterface::getHost in Lockr 7.3

Retrieve the host component of the URI.

If no host is present, this method MUST return an empty string.

The value returned MUST be normalized to lowercase, per RFC 3986 Section 3.2.2.

Return value

string The URI host.

See also

http://tools.ietf.org/html/rfc3986#section-3.2.2

1 method overrides UriInterface::getHost()
Uri::getHost in vendor/guzzlehttp/psr7/src/Uri.php
Retrieve the host component of the URI.

File

vendor/psr/http-message/src/UriInterface.php, line 90

Class

UriInterface
Value object representing a URI.

Namespace

Psr\Http\Message

Code

public function getHost();