You are here

public function Uri::getHost in Zircon Profile 8

Same name in this branch
  1. 8 vendor/zendframework/zend-diactoros/src/Uri.php \Zend\Diactoros\Uri::getHost()
  2. 8 vendor/zendframework/zend-feed/src/Uri.php \Zend\Feed\Uri::getHost()
  3. 8 vendor/guzzlehttp/psr7/src/Uri.php \GuzzleHttp\Psr7\Uri::getHost()
Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-diactoros/src/Uri.php \Zend\Diactoros\Uri::getHost()

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/zendframework/zend-diactoros/src/Uri.php, line 179

Class

Uri
Implementation of Psr\Http\UriInterface.

Namespace

Zend\Diactoros

Code

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