yii\web\Request::setHostInfo PHP Method

setHostInfo() public method

This setter is provided in case the schema and hostname cannot be determined on certain Web servers.
See also: getHostInfo() for security related notes on this property.
public setHostInfo ( string | null $value )
$value string | null the schema and host part of the application URL. The trailing slashes will be removed.
    public function setHostInfo($value)
    {
        $this->_hostName = null;
        $this->_hostInfo = $value === null ? null : rtrim($value, '/');
    }