class HttpRetriever (View source)

The HttpRetriever class.

Methods

static mixed
__callStatic(string $name, array $args)

__callStatic

static HttpClient
getInstance(array $options = array(), TransportInterface $transport = null)

getInstance

static HttpClient
create(array $options = array(), TransportInterface $transport = null)

create

static string
getTransport()

Method to get property Transport

static void
setTransport(string|TransportInterface $transport)

Method to set property transport

static array
getOptions()

Method to get property Options

static void
setOptions(array $options)

Method to set property options

Details

at line line 67
static mixed __callStatic(string $name, array $args)

__callStatic

Parameters

string $name
array $args

Return Value

mixed

Exceptions

BadMethodCallException

at line line 87
static HttpClient getInstance(array $options = array(), TransportInterface $transport = null)

getInstance

Parameters

array $options
TransportInterface $transport

Return Value

HttpClient

at line line 105
static HttpClient create(array $options = array(), TransportInterface $transport = null)

create

Parameters

array $options
TransportInterface $transport

Return Value

HttpClient

at line line 139
static string getTransport()

Method to get property Transport

Return Value

string

at line line 151
static void setTransport(string|TransportInterface $transport)

Method to set property transport

Parameters

string|TransportInterface $transport

Return Value

void

at line line 161
static array getOptions()

Method to get property Options

Return Value

array

at line line 173
static void setOptions(array $options)

Method to set property options

Parameters

array $options

Return Value

void