HTTP transport class for using PHP streams.
- Depuis
- 1.7.3
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 | $method | The HTTP method for sending the request. |
Uri | $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
- Response
- Depuis
- 1.7.3
- Exceptions
-
Implémente TransportInterface.
Références $config, $content, $context, $data, $key, $options, $uri, $user, $value, et elseif.