HttpFactory

HTTP factory class.

since

1.0

package

Joomla Framework

Methods

getAvailableDriver

Finds an available TransportInterface object for communication

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

1.0

throws

\InvalidArgumentException

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 an Http instance.

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

1.0

throws

\InvalidArgumentException

\RuntimeException

Arguments

options

array|\ArrayAccessClient options array.

adapters

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

Response

\Joomla\Http\Http

getHttpTransports

Get the HTTP transport handlers

getHttpTransports() : array
static
since

1.0

Response

arrayAn array of available transport handlers