Embryo/Http/Message/Traits/RequestTrait.php
protected function setRequestTarget(string $path, string $query)
        {   
            $target = $path;
            if ($target === '') {
                $target = '/';
            }
            
            if ($query != '') {
                $target .= '?'.$query;
            }
            return $target;
        }
protected function setRequestTarget(string $path, string $query)
        {   
            $target = $path;
            if ($target === '') {
                $target = '/';
            }
            
            if ($query != '') {
                $target .= '?'.$query;
            }
            return $target;
        }
protected function setRequestTarget ( string $ path , string $ query ) { $ target = $ path ; if ( $ target === '' ) { $ target = '/' ; } if ( $ query != '' ) { $ target .= '?' . $ query ; } return $ target ; }
Sets request target.

@param string $path
@param string $query
@return string
Sets request target .