You are here

public function RestClient::setHttpClientOptions in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::setHttpClientOptions()
  2. 5.0.x src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::setHttpClientOptions()

Set options for Guzzle HTTP client.

Parameters

array $options: The options to pass through to guzzle, as an associative array of option names and option values.

Return value

$this

Overrides RestClientInterface::setHttpClientOptions

See also

http://docs.guzzlephp.org/en/latest/request-options.html

File

src/Rest/RestClient.php, line 288

Class

RestClient
Objects, properties, and methods to communicate with the Salesforce REST API.

Namespace

Drupal\salesforce\Rest

Code

public function setHttpClientOptions(array $options) {
  $this->httpClientOptions = NestedArray::mergeDeep($this->httpClientOptions, $options);
  return $this;
}