class Http

Static class to set the HTTP client used by EasyRdf

Methods

static Client|Client
setDefaultHttpClient(Client|Client $httpClient)

Set the HTTP Client object used to fetch RDF data

static Client|Client
getDefaultHttpClient()

Get the HTTP Client object used to fetch RDF data

Details

at line 59
static Client|Client setDefaultHttpClient(Client|Client $httpClient)

Set the HTTP Client object used to fetch RDF data

Parameters

Client|Client $httpClient The new HTTP client object

Return Value

Client|Client The new HTTP client object

Exceptions

InvalidArgumentException

at line 78
static Client|Client 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

Client|Client The HTTP client object