Returns the HTTP host being requested.
The port name will be appended to the host if it's non-standard.
@api
string
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;
}