Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe SocketTransport
+ Graphe d'héritage de SocketTransport:

Fonctions membres publiques

 __construct (Registry $options)
 
 request ($method, Uri $uri, $data=null, array $headers=null, $timeout=null, $userAgent=null)
 

Fonctions membres publiques statiques

static isSupported ()
 

Fonctions membres protégées

 getResponse ($content)
 
 connect (Uri $uri, $timeout=null)
 

Attributs protégés

 $connections
 
 $options
 

Description détaillée

HTTP transport class for using sockets directly.

Depuis
1.7.3

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( Registry  $options)

Constructor.

Paramètres
Registry$optionsClient options object.
Depuis
1.7.3
Exceptions

Implémente TransportInterface.

Références $options.

Documentation des fonctions membres

◆ connect()

connect ( Uri  $uri,
  $timeout = null 
)
protected

Method to connect to a server and get the resource.

Paramètres
Uri$uriThe URI to connect with.
integer$timeoutRead timeout in seconds.
Renvoie
resource Socket connection resource.
Depuis
1.7.3
Exceptions

Références $key, $uri, elseif, et null.

◆ getResponse()

getResponse (   $content)
protected

Method to get a response object from a server response.

Paramètres
string$contentThe complete server response, including headers.
Renvoie
Response
Depuis
1.7.3
Exceptions

Références $content, et $return.

◆ isSupported()

static isSupported ( )
static

Method to check if http transport socket available for use

Renvoie
boolean True if available else false
Depuis
3.0.0

Implémente TransportInterface.

◆ request()

request (   $method,
Uri  $uri,
  $data = null,
array  $headers = null,
  $timeout = null,
  $userAgent = null 
)

Send a request to the server and return a HttpResponse object with the response.

Paramètres
string$methodThe HTTP method for sending the request.
Uri$uriThe URI to the resource to request.
mixed$dataEither an associative array or a string to be sent with the request.
array$headersAn array of request headers to send with the request.
integer$timeoutRead timeout in seconds.
string$userAgentThe optional user agent string to send with the request.
Renvoie
Response
Depuis
1.7.3
Exceptions

Implémente TransportInterface.

Références $content, $data, $path, $uri, $value, null, et request.

Documentation des champs

◆ $connections

$connections
protected

◆ $options

$options
protected

La documentation de cette classe a été générée à partir du fichier suivant :