You are here

public function EasyRdf_Http_Client::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Client.php \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

vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Client.php, line 111

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);
  }
}