public static function createFromServerRequest(ServerRequest $serverRequest)
    {
        return new Request(
            $serverRequest->getMethod(),
            $serverRequest->getUri(),
            $serverRequest->getHeaders(),
            $serverRequest->getBody(),
            $serverRequest->getProtocolVersion()
        );
    }
public static function createFromServerRequest(ServerRequest $serverRequest)
    {
        return new Request(
            $serverRequest->getMethod(),
            $serverRequest->getUri(),
            $serverRequest->getHeaders(),
            $serverRequest->getBody(),
            $serverRequest->getProtocolVersion()
        );
    }
public static function createFromServerRequest ( ServerRequest $ serverRequest ) { return new Request ( $ serverRequest -> getMethod ( ) , $ serverRequest -> getUri ( ) , $ serverRequest -> getHeaders ( ) , $ serverRequest -> getBody ( ) , $ serverRequest -> getProtocolVersion ( ) ) ; }
Build Request from a server Request.

@param  ServerRequest $serverRequest
@return Request
Build Request from a server Request .