src/Tool/RequestFactory.php
public function getRequestWithOptions($method, $uri, array $options = [])
    {
        $options = $this->parseOptions($options);

        return $this->getRequest(
            $method,
            $uri,
            $options['headers'],
            $options['body'],
            $options['version']
        );
    }
public function getRequestWithOptions($method, $uri, array $options = [])
    {
        $options = $this->parseOptions($options);

        return $this->getRequest(
            $method,
            $uri,
            $options['headers'],
            $options['body'],
            $options['version']
        );
    }
public function getRequestWithOptions ( $ method , $ uri , array $ options = [ ] ) { $ options = $ this -> parseOptions ( $ options ) ; return $ this -> getRequest ( $ method , $ uri , $ options [ 'headers' ] , $ options [ 'body' ] , $ options [ 'version' ] ) ; }
Creates a request using a simplified array of options.

@param  null|string $method
@param  null|string $uri
@param  array $options

@return Request
Creates a request using a simplified array of options .