class HttpFactory

HTTP factory class.

Methods

static  Http
getHttp( Registry $options = null, mixed $adapters = null)

method to receive Http instance.

getAvailableDriver( Registry $options, mixed $default = null)

Finds an available http transport object for communication

static  array
getHttpTransports()

Get the http transport handlers

Details

static Http getHttp( Registry $options = null, mixed $adapters = null)

method to receive Http instance.

Parameters

Registry $options Client options object.
mixed $adapters Adapter (string) or queue of adapters (array) to use for communication.

Return Value

Http Joomla Http class

Exceptions

RuntimeException

static TransportInterface getAvailableDriver( Registry $options, mixed $default = null)

Finds an available http transport object for communication

Parameters

Registry $options Option for creating http transport object
mixed $default Adapter (string) or queue of adapters (array) to use

Return Value

TransportInterface Interface sub-class

static array getHttpTransports()

Get the http transport handlers

Return Value

array An array of available transport handlers