Liste de tous les membres
Fonctions membres publiques statiques |
static | isSupported () |
Documentation des constructeurs et destructeur
JHttpTransportSocket::__construct |
( |
JRegistry & |
$options | ) |
|
Documentation des fonctions membres
JHttpTransportSocket::connect |
( |
JUri |
$uri, |
|
|
|
$timeout = null |
|
) |
| |
|
protected |
Method to connect to a server and get the resource.
- Paramètres:
-
JUri | $uri | The URI to connect with. |
integer | $timeout | Read timeout in seconds. |
- Renvoie:
- resource Socket connection resource.
- Depuis:
- 11.3
- Exceptions:
-
Références $key, et null.
JHttpTransportSocket::getResponse |
( |
|
$content | ) |
|
|
protected |
Method to get a response object from a server response.
- Paramètres:
-
string | $content | The complete server response, including headers. |
- Renvoie:
- JHttpResponse
- Depuis:
- 11.3
- Exceptions:
-
Références $return.
static JHttpTransportSocket::isSupported |
( |
| ) |
|
|
static |
method to check if http transport socket available for using
- Renvoie:
- bool true if available else false
- Depuis:
- 12.1
JHttpTransportSocket::request |
( |
|
$method, |
|
|
JUri |
$uri, |
|
|
|
$data = null , |
|
|
array |
$headers = null , |
|
|
|
$timeout = 30 , |
|
|
|
$userAgent = null |
|
) |
| |
Send a request to the server and return a JHttpResponse object with the response.
- Paramètres:
-
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. |
- Renvoie:
- JHttpResponse
- Depuis:
- 11.3
- Exceptions:
-
Implémente JHttpTransport.
Références $data, $path, et null.
Documentation des données membres
JHttpTransportSocket::$connections |
|
protected |
JHttpTransportSocket::$options |
|
protected |
La documentation de cette classe a été générée à partir du fichier suivant :