You are here

protected function AcquiaSearchSolrService::_sendRawGet in Acquia Connector 7.3

Central method for making a GET operation against this Solr Server

Overrides DrupalApacheSolrService::_sendRawGet

File

acquia_search/includes/AcquiaSearchSolrService.php, line 28

Class

AcquiaSearchSolrService
Class AcquiaSearchSolrService.

Code

protected function _sendRawGet($url, $options = []) {

  // phpcs:ignore
  $nonce = AcquiaSearchSolrCrypt::randomBytes(24);
  $this
    ->prepareRequest($url, $options, $nonce);
  $response = $this
    ->_makeHttpRequest($url, $options);
  $response = $this
    ->checkResponse($response);
  return $this
    ->authenticateResponse($response, $nonce, $url);
}