src/ElasticSearch/Transport/Memcached.php
public function request($path, $method="GET", $payload=false) {
        $url = $this->buildUrl($path);
        switch ($method) {
            case 'GET':
                $result = $this->conn->get($url);
                break;
            case 'DELETE':
                $result = $this->conn->delete($url);
                break;
        }
        return json_decode($result);
    }
public function request($path, $method="GET", $payload=false) {
        $url = $this->buildUrl($path);
        switch ($method) {
            case 'GET':
                $result = $this->conn->get($url);
                break;
            case 'DELETE':
                $result = $this->conn->delete($url);
                break;
        }
        return json_decode($result);
    }
Perform a request against the given path/method/payload combination
Example:
$es->request('/_status');

@param string|array $path
@param string $method
@param array|bool $payload
@return array