protected function createRequest($verb, $path, $parameters = [])
    {
        if (isset($parameters['file'])) {
            $this->queueResourceAs(
                'file',
                Psr7\stream_for($parameters['file'])
            );
            unset($parameters['file']);
        }

        $request = new Request(
            $verb,
            $this->getUrlFromPath($path),
            $this->getHeaders()
        );

        return $request->withUri(
            $request->getUri()->withQuery(
                http_build_query($parameters)
            )
        );
    }
protected function createRequest($verb, $path, $parameters = [])
    {
        if (isset($parameters['file'])) {
            $this->queueResourceAs(
                'file',
                Psr7\stream_for($parameters['file'])
            );
            unset($parameters['file']);
        }

        $request = new Request(
            $verb,
            $this->getUrlFromPath($path),
            $this->getHeaders()
        );

        return $request->withUri(
            $request->getUri()->withQuery(
                http_build_query($parameters)
            )
        );
    }
protected function createRequest ( $ verb , $ path , $ parameters = [ ] ) { if ( isset ( $ parameters [ 'file' ] ) ) { $ this -> queueResourceAs ( 'file' , Psr7 \ stream_for ( $ parameters [ 'file' ] ) ) ; unset ( $ parameters [ 'file' ] ) ; } $ request = new Request ( $ verb , $ this -> getUrlFromPath ( $ path ) , $ this -> getHeaders ( ) ) ; return $ request -> withUri ( $ request -> getUri ( ) -> withQuery ( http_build_query ( $ parameters ) ) ) ; }
Creates a request.

@param  string $verb
@param  string $path
@param  array  $parameters

@return Request
Creates a request .