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

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 ()
 

Description détaillée

HTTP transport class interface.

Depuis
1.7.3

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( Registry  $options)

Constructor.

Paramètres
Registry$optionsClient options object.
Depuis
1.7.3

Implémenté dans SocketTransport, CurlTransport, et StreamTransport.

Documentation des fonctions membres

◆ isSupported()

static isSupported ( )
static

Method to check if HTTP transport is available for use

Renvoie
boolean True if available else false
Depuis
3.0.0

Implémenté dans SocketTransport, CurlTransport, et StreamTransport.

◆ 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

Implémenté dans StreamTransport, SocketTransport, et CurlTransport.


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