Example #1
0
 /**
  * Create Request object
  * @param  string $url     Resource URL
  * @param  array  $options Array of options (must include driver)
  * @return $this           Returns this for method chaining
  */
 protected function request($url, array $options = array())
 {
     empty($options['driver']) && ($options['driver'] = 'curl');
     $this->request = \Request::forge($url, $options);
     $this->get_config('auto_format', true) === false and $this->request->set_auto_format(false);
     return $this;
 }