TransportInterface
HTTP transport class interface.
since |
1.7.3 |
---|
Methods
__construct
Constructor.
__construct(\Joomla\Registry\Registry $options)
isSupported
Method to check if HTTP transport is available for use
isSupported() : boolean
static
since |
3.0.0 |
---|
Response
boolean
True if available else false
request
Send a request to the server and return a HttpResponse object with the response.
request(string $method, \Joomla\CMS\Uri\Uri $uri, mixed $data = null, array $headers = null, integer $timeout = null, string $userAgent = null) : \Joomla\CMS\Http\Response
since |
1.7.3 |
---|
Arguments
- $method
string
The HTTP method for sending the request.- $uri
\Joomla\CMS\Uri\Uri
The URI to the resource to request.- $data
mixed
Either an associative array or a string to be sent with the request.- $headers
array
An array of request headers to send with the request.- $timeout
integer
Read timeout in seconds.- $userAgent
string
The optional user agent string to send with the request.