HttpFactory

HTTP factory class.

deprecated
since

3.0.0

deprecated

6.0.0 will be removed in 7.0 Use Joomla\Http\HttpFactory instead

package

Joomla CMS

Methods

getAvailableDriver

Finds an available http transport object for communication

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

3.0.0

deprecated

6.0.0 will be removed in 7.0 Use Joomla\Http\HttpFactory::getAvailableDriver() instead

Arguments

options

array<string|int, mixed>|ArrayAccessOptions for creating TransportInterface object

default

array<string|int, mixed>|stringAdapter (string) or queue of adapters (array) to use

Response

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 deprecated
throws

RuntimeException

since

3.0.0

deprecated

6.0.0 will be removed in 7.0 Use Joomla\Http\HttpFactory::getHttp() instead

Arguments

options

array<string|int, mixed>|ArrayAccessClient options array.

adapters

array<string|int, mixed>|stringAdapter (string) or queue of adapters (array) to use for communication.

Response

Http

getHttpTransports

Get the http transport handlers

getHttpTransports() : mixed||string|int
static deprecated
since

3.0.0

deprecated

6.0.0 will be removed in 7.0 Use Joomla\Http\HttpFactory::getHttpTransports() instead

Response

array<string|int, mixed>An array of available transport handlers