public function withHost($host)
    {
        $uri = $this->getUri()->withHost($host);

        /** @var static $clone */
        $clone = $this->withUri($uri);

        return $clone;
    }
public function withHost($host)
    {
        $uri = $this->getUri()->withHost($host);

        /** @var static $clone */
        $clone = $this->withUri($uri);

        return $clone;
    }
public function withHost ( $ host ) { $ uri = $ this -> getUri ( ) -> withHost ( $ host ) ; /** @var static $clone */ $ clone = $ this -> withUri ( $ uri ) ; return $ clone ; }
Returns an instance with the provided host.

Note: This method is not part of the PSR-7 standard.

@param string $host

@return static
Returns an instance with the provided host .