FactoryWrapper

Wrapper class for HttpFactory

since

3.4

Methods

getAvailableDriver

Helper wrapper method for getAvailableDriver

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

3.4

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

Helper wrapper method for getHttp

getHttp(\Joomla\Registry\Registry $options = null, mixed $adapters = null) : \Joomla\CMS\Http\Http
see \Joomla\CMS\Http\HttpFactory::getHttp()
since

3.4

throws

\RuntimeException

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

Helper wrapper method for getHttpTransports

getHttpTransports() : array
see \Joomla\CMS\Http\HttpFactory::getHttpTransports()
since

3.4

Response

arrayAn array of available transport handlers