Remove host item

@param string $host domain name
@return $this
340659
public function removeHost(string $host)
	{
		$host = Host::filter($host);
		if( $this->offsetExists($host) ) unset( $this->hosts[$host] );
		return $this;
	}
1271468
protected function normalizeHost($host) {
		if ($host instanceof Url) {
			return $host;
		}
		
		if (is_numeric($host)) {
			return new Url(['port' => $host]);
		}
		
		if (is_string($host) && ! preg_match('~^[a-z]://~', $host)) {
			return new Url('mongodb://' . $host);
		}
		
		return new Url($host);
	}
185927
function _filterHost($host)
    {
        if (strstr($host, ':') !== false)
            throw new \InvalidArgumentException('Host name can`t contains port number.');

        $host = strtolower($host);
        return $host;
    }
1267551
protected function setHost($host)
    {
        $this->uriString = null;

        $this->host = (string) $host;

        return $this;
    }
64749
public function restrictHost($host) {
        if ( ! is_array($host)) {
            $host = [$host];
        }

        $this->getRoutesMatcher()->getRestrictionsMatcher()
            ->setHosts($host);

        return $this;
    }
1275504
public static void removeDnsCache(String host) {
        try {
            InetAddressCacheUtil.removeInetAddressCache(host);
        } catch (Exception e) {
            final String message = String.format("Fail to removeDnsCache for host %s, cause: %s", host, e.toString());
            throw new DnsCacheManipulatorException(message, e);
        }
    }
1172244
public function withHost(HostInterface $host): UrlInterface
    {
        return new self($this->myScheme, $host, $this->myPort, $this->myPath, $this->myQueryString, $this->myFragment);
    }
1105
public function setHost($host)
    {
        if (! (self::_isHostname($host) || self::_isIpAddress($host))) {

            throw new InvalidArgumentException("Invalid host ($host)");
        }

        $this->_host = strtolower(trim($host));
    }
800081
public function setHost($host)
    {
        if (substr($host, -1) === '/') {
            $host = substr($host, 0, -1);
        }

        $headers = $this->getConfig('headers');
        $headers['Host'] = $host;
        $this->setConfigOption('headers', $headers);

        if (strpos('/', $host) === false) {
            $host = 'https://' . $host;
        }
        $this->setConfigOption('base_uri', $host);

        return $this;
    }
1064704
public function withHost($host)
        {
            if(!is_string($host)){
                throw new InvalidArgumentException('Uri host must be a string');
            }

            $clone = clone $this;
            $clone->host = $this->removePortFromHost($host);
            return $clone;
        }
800297
public function remove($name)
    {
        //argument 1 must be a string
        Argument::i()->test(1, 'string');

        if (isset($_SESSION[$name])) {
            unset($_SESSION[$name]);
        }

        return $this;
    }
361948
public function addHost( Host $host )
	{
		$host_name = $host->getHostName();
		if( $this->offsetExists($host_name) ) throw new \InvalidArgumentException("Duplicate host {$host_name}");

		foreach( $this->hosts as $h )
		{
			// check WWW duplicate name
			if($h->isWww() && ("www." . $h->getHostName()) === $host_name)
				throw new \InvalidArgumentException("Duplicate host {$host_name}");

			// remove aliases and redirect from other hosts
			if($h->inAlias($host_name) || $h->inRedirect($host_name))
				$h->removeAlias($host_name);
		}

		// check duplicate names
		foreach( $host->getAliases() as $alias ) $this->throwAlias($alias, $host_name);
		foreach( $host->getRedirect() as $redirect ) $this->throwAlias($redirect, $host_name);

		$host->addInvoker(function($type, $value) use($host_name) {
			switch($type)
			{
				case "alias":
				case "redirect": $this->throwAlias($value, $host_name); break;
			}
		});

		return $this;
	}
1345182
public static function setHost($host) {

		if(false === is_string($host)) {
  			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($host)), E_USER_ERROR);
  		}

		$_SERVER['HTTP_HOST'] = $host;
	}
75713
public function setHost($host)
    {
        if ($host instanceof Binary && $host->getType() == Binary::TYPE_UUID) {
            return $this->{$this->createdByAttribute} = $host;
        }
        if ($host instanceof $this->hostClass || $host instanceof IdentityInterface) {
            return $this->{$this->createdByAttribute} = new Binary($host->getGUID(), Binary::TYPE_UUID);
        }
        if (is_string($host) && preg_match(Number::GUID_REGEX, $host)) {
            return $this->{$this->createdByAttribute} = new Binary(Number::guid_bin($host), Binary::TYPE_UUID);
        }
        if (strlen($host) == 16) {
            return $this->{$this->createdByAttribute} = new Binary($host, Binary::TYPE_UUID);
        }
        return false;
    }
881844
public function setHost($host)
    {
        if (strpos($host, ':') === false) {
            $this->host = $host;
        } else {
            list($host, $port) = explode(':', $host);
            $this->host = $host;
            $this->setPort($port);
        }

        return $this;
    }
1053279
public function withHost(string $host): URI
    {
        $result = clone $this;
        $result->host = $this->filterHost($host);

        return $result;
    }
1153139
private function cleanHost($host)
    {
        // communicate via http by default if none is assigned
        if (strpos($host, 'http://') === false || strpos($host, 'https://')) {
            $host = 'http://' . $host;
        }

        // remove / at the end
        $host = rtrim($host, '/');

        return $host;
    }