src/Guzzle/Http/Url.php
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;
    }
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;
    }
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 ; }
Set the host of the request.

@param string $host Host to set (e.g. www.yahoo.com, yahoo.com)

@return Url
Set the host of the request .