TransportInterface
HTTP transport class interface.
since |
1.0 |
---|---|
package |
Joomla Framework |
Methods
isSupported
Method to check if HTTP transport layer available for using
isSupported() : bool
static
since |
1.0 |
---|
Response
bool
True if available else false
request
Send a request to the server and return a Response object with the response.
request(string method, \Joomla\Uri\UriInterface uri, mixed data = null, array headers = [], int timeout = null, string userAgent = null) : \Joomla\Http\Response
since |
1.0 |
---|
Arguments
- method
string
The HTTP method for sending the request.- uri
\Joomla\Uri\UriInterface
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
int
Read timeout in seconds.- userAgent
string
The optional user agent string to send with the request.
Response
\Joomla\Http\Response