HttpFactory
HTTP factory class.
since |
1.0 |
---|---|
package |
Joomla Framework |
Methods
getAvailableDriver
Finds an available TransportInterface object for communication
getAvailableDriver(array|\ArrayAccess options = [], array|string default = null) : \Joomla\Http\TransportInterface|bool
since |
1.0 |
---|---|
throws |
|
Arguments
- options
array|\ArrayAccess
Options for creating TransportInterface object- default
array|string
Adapter (string) or queue of adapters (array) to use
Response
\Joomla\Http\TransportInterface|bool
Interface sub-class or boolean false if no adapters are available
getHttp
Method to create an Http instance.
getHttp(array|\ArrayAccess options = [], array|string adapters = null) : \Joomla\Http\Http
since |
1.0 |
---|---|
throws |
|
Arguments
- options
array|\ArrayAccess
Client options array.- adapters
array|string
Adapter (string) or queue of adapters (array) to use for communication.
Response
\Joomla\Http\Http
getHttpTransports
Get the HTTP transport handlers
getHttpTransports() : string[]
since |
1.0 |
---|
Response
string[]
An array of available transport handler types