public function toPsrRequest(): RequestInterface {
        return new Psr7Request(
            $this->method,
            $this->getUri(),
            $this->Headers->toPsr7Array(),
            isset($this->body) ? new Psr7Stream($this->body) : null
        );
    }
public function toPsrRequest(): RequestInterface {
        return new Psr7Request(
            $this->method,
            $this->getUri(),
            $this->Headers->toPsr7Array(),
            isset($this->body) ? new Psr7Stream($this->body) : null
        );
    }
public function toPsrRequest ( ) : RequestInterface { return new Psr7Request ( $ this -> method , $ this -> getUri ( ) , $ this -> Headers -> toPsr7Array ( ) , isset ( $ this -> body ) ? new Psr7Stream ( $ this -> body ) : null ) ; }
Constructs a Psr7 compliant request for use in a Psr7 client.

@return \Psr\Http\Message\RequestInterface
Constructs a Psr7 compliant request for use in a Psr7 client .