src/Control/Director.php
public static function hostName(HTTPRequest $request = null)
    {
        $host = static::host($request);
        return parse_url($host, PHP_URL_HOST) ?: null;
    }
public static function hostName(HTTPRequest $request = null)
    {
        $host = static::host($request);
        return parse_url($host, PHP_URL_HOST) ?: null;
    }
public static function hostName ( HTTPRequest $ request = null ) { $ host = static :: host ( $ request ) ; return parse_url ( $ host , PHP_URL_HOST ) ? : null ; }
Return host name without port

@param HTTPRequest|null $request
@return string|null
Return host name without port