src/main/php/request/WebRequest.php
public function uri(): HttpUri
    {
        $host = (string) $this->headers->value('HTTP_HOST')->value();
        return HttpUri::fromParts(
                $this->headers->contain('HTTPS') ? Http::SCHEME_SSL : Http::SCHEME,
                $host,
                strstr($host, ':') === false ? $this->headers->value('SERVER_PORT')->value() : null,
                (string) $this->headers->value('REQUEST_URI')->value() // already contains query string
        );
    }
public function uri(): HttpUri
    {
        $host = (string) $this->headers->value('HTTP_HOST')->value();
        return HttpUri::fromParts(
                $this->headers->contain('HTTPS') ? Http::SCHEME_SSL : Http::SCHEME,
                $host,
                strstr($host, ':') === false ? $this->headers->value('SERVER_PORT')->value() : null,
                (string) $this->headers->value('REQUEST_URI')->value() // already contains query string
        );
    }
public function uri ( ) : HttpUri { $ host = ( string ) $ this -> headers -> value ( 'HTTP_HOST' ) -> value ( ) ; return HttpUri :: fromParts ( $ this -> headers -> contain ( 'HTTPS' ) ? Http :: SCHEME_SSL : Http :: SCHEME , $ host , strstr ( $ host , ':' ) === false ? $ this -> headers -> value ( 'SERVER_PORT' ) -> value ( ) : null , ( string ) $ this -> headers -> value ( 'REQUEST_URI' ) -> value ( ) // already contains query string ) ; }
returns the uri of the request

In case the composed uri for this request does not denote a valid HTTP
uri a stubbles\peer\MalformedUriException is thrown. If you came this far
but the request is for an invalid HTTP uri something is completely wrong,
most likely the request tries to find out if you have a security issue
because the request uri data is not checked properly. It is advisable to
respond with a 400 Bad Request in such cases.

@return  \stubbles\peer\http\HttpUri
returns the uri of the request