src/Valkyrja/Http/NativeRequest.php
public function getPath(): string
    {
        if (null === $this->path) {
            $this->path = $this->server()->get('REQUEST_URI');
        }

        return $this->path;
    }
public function getPath(): string
    {
        if (null === $this->path) {
            $this->path = $this->server()->get('REQUEST_URI');
        }

        return $this->path;
    }
Returns the path being requested relative to the executed script.

@return string