public function Request::getHttpHost in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::getHttpHost()
Returns the HTTP host being requested.
The port name will be appended to the host if it's non-standard.
Return value
string
1 call to Request::getHttpHost()
- Request::getSchemeAndHttpHost in vendor/
symfony/ http-foundation/ Request.php - Gets the scheme and HTTP host.
File
- vendor/
symfony/ http-foundation/ Request.php, line 1028
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundationCode
public function getHttpHost() {
$scheme = $this
->getScheme();
$port = $this
->getPort();
if ('http' == $scheme && $port == 80 || 'https' == $scheme && $port == 443) {
return $this
->getHost();
}
return $this
->getHost() . ':' . $port;
}