head() public method

Performs HEAD HTTP request
public head ( string | array $url, array $options = [], string $body = null ) : mixed
$url string | array URL
$options array URL options
$body string request body
return mixed response
コード例 #1
0
ファイル: Command.php プロジェクト: nbsp/yii2-elasticsearch
 /**
  * @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]);
 }