src/http/request/Host.php
public function getDnsName(): string
    {
        $host = $this->environment["HTTP_HOST"] ?? "";
        $port = strpos($host, ":");
        if ($port !== false) {
            return substr($host, 0, $port);
        }
        return $host;
    }
public function getDnsName(): string
    {
        $host = $this->environment["HTTP_HOST"] ?? "";
        $port = strpos($host, ":");
        if ($port !== false) {
            return substr($host, 0, $port);
        }
        return $host;
    }
public function getDnsName ( ) : string { $ host = $ this -> environment [ "HTTP_HOST" ] ?? "" ; $ port = strpos ( $ host , ":" ) ; if ( $ port !== false ) { return substr ( $ host , 0 , $ port ) ; } return $ host ; }
Retrieve the name of the request host

@return string
Retrieve the name of the request host