private function buildHost(UriInterface $uri): string
    {
        return $uri->getHost().($uri->getPort() !== null ? ':'.$uri->getPort() : '');
    }
private function buildHost(UriInterface $uri): string
    {
        return $uri->getHost().($uri->getPort() !== null ? ':'.$uri->getPort() : '');
    }
private function buildHost ( UriInterface $ uri ) : string { return $ uri -> getHost ( ) . ( $ uri -> getPort ( ) !== null ? ':' . $ uri -> getPort ( ) : '' ) ; }
Returns the host header.

@param UriInterface $uri

@return string
Returns the host header .