public static function replaceLabel($uri, int $offset, $host)
    {
        return $uri->withHost((string) (new Domain(self::filterUri($uri)->getHost()))->withLabel($offset, $host));
    }
public static function replaceLabel($uri, int $offset, $host)
    {
        return $uri->withHost((string) (new Domain(self::filterUri($uri)->getHost()))->withLabel($offset, $host));
    }
public static function replaceLabel ( $ uri , int $ offset , $ host ) { return $ uri -> withHost ( ( string ) ( new Domain ( self :: filterUri ( $ uri ) -> getHost ( ) ) ) -> withLabel ( $ offset , $ host ) ) ; }
Replace a label of the current URI host.

@return Psr7UriInterface|UriInterface
Replace a label of the current URI host .