public function get($url, $data = [], array $options = [])
    {
        $options = $this->_mergeOptions($options);
        $body = null;
        if (isset($data['_content'])) {
            $body = $data['_content'];
            unset($data['_content']);
        }
        $url = $this->buildUrl($url, $data, $options);

        return $this->_doRequest(
            Request::METHOD_GET,
            $url,
            $body,
            $options
        );
    }
public function get($url, $data = [], array $options = [])
    {
        $options = $this->_mergeOptions($options);
        $body = null;
        if (isset($data['_content'])) {
            $body = $data['_content'];
            unset($data['_content']);
        }
        $url = $this->buildUrl($url, $data, $options);

        return $this->_doRequest(
            Request::METHOD_GET,
            $url,
            $body,
            $options
        );
    }
public function get ( $ url , $ data = [ ] , array $ options = [ ] ) { $ options = $ this -> _mergeOptions ( $ options ) ; $ body = null ; if ( isset ( $ data [ '_content' ] ) ) { $ body = $ data [ '_content' ] ; unset ( $ data [ '_content' ] ) ; } $ url = $ this -> buildUrl ( $ url , $ data , $ options ) ; return $ this -> _doRequest ( Request :: METHOD_GET , $ url , $ body , $ options ) ; }
Do a GET request.

The $data argument supports a special `_content` key
for providing a request body in a GET request. This is
generally not used, but services like ElasticSearch use
this feature.

@param string $url The url or path you want to request.
@param array $data The query data you want to send.
@param array $options Additional options for the request.
@return \Cake\Http\Client\Response
Do a GET request .