public function current($includeQuery = true)
    {
        $url = "";
        if (!$this->serverVars && php_sapi_name() == 'cli') {
            $url = "cli";
        } else {
            $url .= $this->currentScheme().$this->currentHost();
            $port = $this->currentPort();
            if (!in_array($port, [ false, 80])) {
                $url .= ':'.$port;
            }
            $url .= $this->currentPath();
            if ($includeQuery) {
                $query = $this->currentQuery();
                if ($query) {
                    $url .= '?'.$query;
                }
            }
        }
        return static::create($url);
    }