public function RestClient::setHttpClientOption in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::setHttpClientOption()
- 8.3 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 323
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;
}