public function EasyRdf_Http_Client::__construct

Constructor method. Will create a new HTTP client. Accepts the target URL and optionally configuration array.

Parameters

string $uri:

array $config Configuration key-value pairs.:

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Client.php, line 112

Class

EasyRdf_Http_Client
This class is an implemetation of an HTTP client in PHP. It supports basic HTTP 1.0 and 1.1 requests. For a more complete implementation try Zend_Http_Client.

Code

public function __construct($uri = null, $config = null) {
  if ($uri !== null) {
    $this
      ->setUri($uri);
  }
  if ($config !== null) {
    $this
      ->setConfig($config);
  }
}