Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques | |
__construct (JRegistry $options) | |
request ($method, JUri $uri, $data=null, array $headers=null, $timeout=null, $userAgent=null) |
Fonctions membres publiques statiques | |
static | isSupported () |
Définition à la ligne 19 du fichier transport.php.
JHttpTransport::__construct | ( | JRegistry | $options | ) |
Constructor.
JRegistry | $options | Client options object. |
Implémenté dans JHttpTransportSocket, JHttpTransportCurl, et JHttpTransportStream.
|
static |
Method to check if HTTP transport is available for use
Implémenté dans JHttpTransportSocket, JHttpTransportCurl, et JHttpTransportStream.
JHttpTransport::request | ( | $method, | |
JUri | $uri, | ||
$data = null , |
|||
array | $headers = null , |
||
$timeout = null , |
|||
$userAgent = null |
|||
) |
Send a request to the server and return a JHttpResponse object with the response.
string | $method | The HTTP method for sending the request. |
JUri | $uri | The URI to the resource to request. |
mixed | $data | Either an associative array or a string to be sent with the request. |
array | $headers | An array of request headers to send with the request. |
integer | $timeout | Read timeout in seconds. |
string | $userAgent | The optional user agent string to send with the request. |
Implémenté dans JHttpTransportStream, JHttpTransportSocket, et JHttpTransportCurl.