public function getHttpHost(): string
    {
        $scheme = $this->getScheme();
        $port   = $this->getPort();

        if (
            ('http' === $scheme && $port === 80)
            || ('https' === $scheme && $port === 443)
        ) {
            return $this->getHost();
        }

        return $this->getHost() . ':' . $port;
    }