You are here

public function AcquiaLiftDrupalHttpClient::get in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 includes/AcquiaLiftDrupalHttpClient.inc \AcquiaLiftDrupalHttpClient::get()

Implements AcquiaLiftDrupalHttpClientInterface::get().

Overrides AcquiaLiftDrupalHttpClientInterface::get

File

includes/acquia_lift.classes.inc, line 1802
Provides an agent type for Acquia Lift

Class

AcquiaLiftDrupalHttpClient
This is just an OOP wrapper around drupal_http_request.

Code

public function get($uri = NULL, $headers = NULL, array $options = array()) {
  $headers = $headers ? $headers : array();
  $options += array(
    'timeout' => self::REQUEST_TIMEOUT_VALUE_GET,
  );
  $options = array(
    'method' => 'GET',
    'headers' => $headers,
  ) + $options;
  return drupal_http_request($uri, $options);
}