HttpFactory
HTTP factory class.
since |
3.0.0 |
---|
Methods
getAvailableDriver
Finds an available http transport object for communication
getAvailableDriver(\Joomla\Registry\Registry $options, mixed $default = null) : \Joomla\CMS\Http\TransportInterface
static
since |
3.0.0 |
---|
Arguments
- $options
\Joomla\Registry\Registry
Option for creating http transport object- $default
mixed
Adapter (string) or queue of adapters (array) to use
Response
\Joomla\CMS\Http\TransportInterface
Interface sub-class
getHttp
method to receive Http instance.
getHttp(\Joomla\Registry\Registry $options = null, mixed $adapters = null) : \Joomla\CMS\Http\Http
static
throws |
|
---|---|
since |
3.0.0 |
Arguments
- $options
\Joomla\Registry\Registry
Client options object.- $adapters
mixed
Adapter (string) or queue of adapters (array) to use for communication.
Response
\Joomla\CMS\Http\Http
Joomla Http class
getHttpTransports
Get the http transport handlers
getHttpTransports() : array
static
since |
3.0.0 |
---|
Response
array
An array of available transport handlers