Elastica\Snapshot::request PHP Method

request() public method

Perform a snapshot request.
public request ( string $path, string $method = Request::GET, array $data = [], array $query = [] ) : Response
$path string the URL
$method string the HTTP method
$data array request body data
$query array query string parameters
return Response
    public function request($path, $method = Request::GET, $data = [], array $query = [])
    {
        return $this->_client->request('/_snapshot/' . $path, $method, $data, $query);
    }