protected function _doRequest($method, $url, $data, $options)
    {
        $request = $this->_createRequest(
            $method,
            $url,
            $data,
            $options
        );

        return $this->send($request, $options);
    }
protected function _doRequest($method, $url, $data, $options)
    {
        $request = $this->_createRequest(
            $method,
            $url,
            $data,
            $options
        );

        return $this->send($request, $options);
    }
protected function _doRequest ( $ method , $ url , $ data , $ options ) { $ request = $ this -> _createRequest ( $ method , $ url , $ data , $ options ) ; return $ this -> send ( $ request , $ options ) ; }
Helper method for doing non-GET requests.

@param string $method HTTP method.
@param string $url URL to request.
@param mixed $data The request body.
@param array $options The options to use. Contains auth, proxy, etc.
@return \Cake\Http\Client\Response
Helper method for doing non - GET requests .