Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
request ($method, UriInterface $uri, $data=null, array $headers=[], $timeout=null, $userAgent=null) | |
Fonctions membres publiques hérités de AbstractTransport | |
__construct ($options=[]) | |
Fonctions membres publiques statiques | |
static | isSupported () |
Fonctions membres protégées | |
getResponse ($content, $info) | |
Fonctions membres protégées hérités de AbstractTransport | |
getOption (string $key, $default=null) | |
processHeaders (array $headers) | |
Fonctions membres privées | |
redirectsAllowed () | |
Membres hérités additionnels | |
Attributs protégés hérités de AbstractTransport | |
$options | |
HTTP transport class for using cURL.
|
protected |
Method to get a response object from a server response.
string | $content | The complete server response, including headers as a string if the response has no errors. |
array | $info | The cURL request information. |
InvalidResponseCodeException |
Références $content, $info, Symfony\Component\Console\Tester\$statusCode, et null.
|
static |
Method to check if HTTP transport cURL is available for use
Implémente TransportInterface.
|
private |
Check if redirects are allowed
request | ( | $method, | |
UriInterface | $uri, | ||
$data = null , |
|||
array | $headers = [] , |
||
$timeout = null , |
|||
$userAgent = null |
|||
) |
Send a request to the server and return a Response object with the response.
string | $method | The HTTP method for sending the request. |
UriInterface | $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émente TransportInterface.
Références $app, $content, $data, $info, $key, $message, $method, $options, $this, $uri, $user, $value, Factory\getApplication(), et CaBundle\getBundledCaBundlePath().