http.php
public function getHostLine()
    {
        $host = 'Host: ' . $this->proxy->getHost();
        $port = $this->proxy->getPort() ? $this->proxy->getPort() : 8080;

        return "$host:$port";
    }
public function getHostLine()
    {
        $host = 'Host: ' . $this->proxy->getHost();
        $port = $this->proxy->getPort() ? $this->proxy->getPort() : 8080;

        return "$host:$port";
    }
Creates the host part of the request.

@param SimpleUrl $url   URL as object.

@return string          Host line content.