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 StreamTransport
+ Graphe d'héritage de StreamTransport:

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 (array $headers, $body)
 

Attributs protégés

 $options
 

Description détaillée

HTTP transport class for using PHP streams.

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

◆ getResponse()

getResponse ( array  $headers,
  $body 
)
protected

Method to get a response object from a server response.

Paramètres
array$headersThe response headers as an array.
string$bodyThe response body as a string.
Renvoie
Response
Depuis
1.7.3
Exceptions

Références $return.

◆ isSupported()

static isSupported ( )
static

Method to check if http transport stream 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 $config, $content, $context, $data, $key, $options, $uri, $user, $value, et elseif.

Documentation des champs

◆ $options

$options
protected

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