/**
  * Sets HTTP option.
  *
  * @param string $name  Option name
  * @param string $value HTTP option
  *
  * @return void
  */
 public function setOption($name, $value)
 {
     Arr::set($this->_options, $name, $value);
 }
 /**
  * Sets a 'form parameter'.
  *
  * @param string                              $name  Parameter name
  * @param scalar|scalar[]|HttpRequestFormData $value Value
  *
  * @return void
  */
 public function setFormParam($name, $value)
 {
     if (!$value instanceof HttpRequestFormData) {
         $value = new HttpRequestFormData($value);
     }
     Arr::set($this->formParams, $name, $value);
 }