HttpFactory

HTTP factory class.

since

3.0.0

Methods

getAvailableDriver

Finds an available http transport object for communication

getAvailableDriver(\Joomla\Registry\Registry $options, mixed $default = null) : \Joomla\CMS\Http\TransportInterface
static
since

3.0.0

Arguments

$options

\Joomla\Registry\RegistryOption for creating http transport object

$default

mixedAdapter (string) or queue of adapters (array) to use

Response

\Joomla\CMS\Http\TransportInterfaceInterface sub-class

getHttp

method to receive Http instance.

getHttp(\Joomla\Registry\Registry $options = null, mixed $adapters = null) : \Joomla\CMS\Http\Http
static
throws

\RuntimeException

since

3.0.0

Arguments

$options

\Joomla\Registry\RegistryClient options object.

$adapters

mixedAdapter (string) or queue of adapters (array) to use for communication.

Response

\Joomla\CMS\Http\HttpJoomla Http class

getHttpTransports

Get the http transport handlers

getHttpTransports() : array
static
since

3.0.0

Response

arrayAn array of available transport handlers