Happyr\LinkedIn\Http\UrlGenerator::getHttpHost PHP Method

getHttpHost() protected method

Get the host.
protected getHttpHost ( ) : mixed
return mixed
    protected function getHttpHost()
    {
        if ($this->trustForwarded && isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
            return $_SERVER['HTTP_X_FORWARDED_HOST'];
        }
        return $_SERVER['HTTP_HOST'];
    }