You are here

public static function EasyRdf_Http::getDefaultHttpClient in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Http.php \EasyRdf_Http::getDefaultHttpClient()

Get the HTTP Client object used to fetch RDF data

If no HTTP Client has previously been set, then a new default (EasyRdf_Http_Client) client will be created.

Return value

EasyRdf_Http_Client|Zend_Http_Client The HTTP client object

4 calls to EasyRdf_Http::getDefaultHttpClient()
EasyRdf_Graph::load in vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php
Load RDF data into the graph from a URI.
EasyRdf_GraphStore::delete in vendor/easyrdf/easyrdf/lib/EasyRdf/GraphStore.php
Delete named graph content from the graph store
EasyRdf_GraphStore::sendGraph in vendor/easyrdf/easyrdf/lib/EasyRdf/GraphStore.php
Send some graph data to the graph store
EasyRdf_Sparql_Client::request in vendor/easyrdf/easyrdf/lib/EasyRdf/Sparql/Client.php

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Http.php, line 75

Class

EasyRdf_Http
Static class to set the HTTP client used by EasyRdf

Code

public static function getDefaultHttpClient() {
  if (!isset(self::$defaultHttpClient)) {
    self::$defaultHttpClient = new EasyRdf_Http_Client();
  }
  return self::$defaultHttpClient;
}