get() public method

Performs GET HTTP request
public get ( string | array $url, array $options = [], string $body = null, boolean $raw = false ) : mixed
$url string | array URL
$options array URL options
$body string request body
$raw boolean if response body contains JSON and should be decoded
return mixed response
Example #1
0
 /**
  * @param $name
  * @return mixed
  * @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
  */
 public function getTemplate($name)
 {
     return $this->db->get(['_template', $name]);
 }