public function here($base = true)
    {
        deprecationWarning(
            'ServerRequest::here() will be removed in 4.0.0. You should use getRequestTarget() instead.'
        );

        $url = $this->here;
        if (!empty($this->query)) {
            $url .= '?' . http_build_query($this->query, null, '&');
        }
        if (!$base) {
            $url = preg_replace('/^' . preg_quote($this->base, '/') . '/', '', $url, 1);
        }

        return $url;
    }