src/Message/Request.php
public function getRequestTarget()
    {
        if (! $this->target && ! $this->uri) {
            return '/';
        }

        return $this->target ? $this->target : $this->getTargetFromUri();
    }
public function getRequestTarget()
    {
        if (! $this->target && ! $this->uri) {
            return '/';
        }

        return $this->target ? $this->target : $this->getTargetFromUri();
    }
Retrieves the message's request target.

If no URI is available, and no request-target has been specifically
provided, this method MUST return the string "/".

@return string