public function head($url, $options = [], $body = null) { $this->open(); return $this->httpRequest('HEAD', $this->createUrl($url, $options), $body); }
/** * @param $index * @param $type * @return mixed * @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-types-exists.html */ public function typeExists($index, $type) { return $this->db->head([$index, $type]); }