public function RestClient::setHttpClientOption in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::setHttpClientOption()
- 5.0.x src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::setHttpClientOption()
Set a single Guzzle HTTP client option.
Parameters
string $option_name: The option name to set.
mixed $option_value: The option value to set.
Return value
$this
Overrides RestClientInterface::setHttpClientOption
See also
setHttpClientOptions
File
- src/
Rest/ RestClient.php, line 315
Class
- RestClient
- Objects, properties, and methods to communicate with the Salesforce REST API.
Namespace
Drupal\salesforce\RestCode
public function setHttpClientOption($option_name, $option_value) {
$this->httpClientOptions[$option_name] = $option_value;
return $this;
}