You are here

public function Uri::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.

Overrides UriInterface::getHost

See also

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

File

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

Class

Uri
PSR-7 URI implementation.

Namespace

GuzzleHttp\Psr7

Code

public function getHost() {
  return $this->host;
}