HttpFactory

HTTP factory class.

since

3.0.0

package

Application

Methods

getAvailableDriver

Finds an available http transport object for communication

getAvailableDriver(array|\ArrayAccess options = [], array|string default = null) : \Joomla\Http\TransportInterface|bool
static
since

3.0.0

Arguments

options

array|\ArrayAccessOptions for creating TransportInterface object

default

array|stringAdapter (string) or queue of adapters (array) to use

Response

\Joomla\Http\TransportInterface|boolInterface sub-class or boolean false if no adapters are available

getHttp

Method to create a JHttp instance.

getHttp(array|\ArrayAccess options = [], array|string adapters = null) : \Joomla\CMS\Http\Http
static
since

3.0.0

throws

\RuntimeException

Arguments

options

array|\ArrayAccessClient options array.

adapters

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

Response

\Joomla\CMS\Http\Http

getHttpTransports

Get the http transport handlers

getHttpTransports() : array
static
since

3.0.0

Response

arrayAn array of available transport handlers