protected function assembleHost(Url $host) {
		if (! $host->hasHost()) {
			$host->setHost($this->defaultHost);
		}
		
		if (preg_match('/\.sock$/i', $host->getHost())) {
			$host->removePort();
		} else if (! $host->hasPort()) {
			$host->setPort($this->defaultPort);
		}
		
		return trim($host->assemble(), '/');
	}
protected function assembleHost(Url $host) {
		if (! $host->hasHost()) {
			$host->setHost($this->defaultHost);
		}
		
		if (preg_match('/\.sock$/i', $host->getHost())) {
			$host->removePort();
		} else if (! $host->hasPort()) {
			$host->setPort($this->defaultPort);
		}
		
		return trim($host->assemble(), '/');
	}
protected function assembleHost ( Url $ host ) { if ( ! $ host -> hasHost ( ) ) { $ host -> setHost ( $ this -> defaultHost ) ; } if ( preg_match ( '/\.sock$/i' , $ host -> getHost ( ) ) ) { $ host -> removePort ( ) ; } else if ( ! $ host -> hasPort ( ) ) { $ host -> setPort ( $ this -> defaultPort ) ; } return trim ( $ host -> assemble ( ) , '/' ) ; }
Assemble an url from the host parts

@param  Url $host
@return string
Assemble an url from the host parts