|
| __construct ($options=[], FrameworkTransportInterface $transport=null) |
|
| __construct ($options=[], TransportInterface $transport=null) |
|
| getOption ($key, $default=null) |
|
| setOption ($key, $value) |
|
| options ($url, array $headers=[], $timeout=null) |
|
| head ($url, array $headers=[], $timeout=null) |
|
| get ($url, array $headers=[], $timeout=null) |
|
| post ($url, $data, array $headers=[], $timeout=null) |
|
| put ($url, $data, array $headers=[], $timeout=null) |
|
| delete ($url, array $headers=[], $timeout=null, $data=null) |
|
| trace ($url, array $headers=[], $timeout=null) |
|
| patch ($url, $data, array $headers=[], $timeout=null) |
|
| sendRequest (RequestInterface $request) |
|
HTTP client class.
- Depuis
- 1.7.3
◆ __construct()
__construct |
( |
|
$options = [] , |
|
|
FrameworkTransportInterface |
$transport = null |
|
) |
| |
Constructor.
- Paramètres
-
array | \ArrayAccess | $options | Client options array. If the registry contains any headers.* elements, these will be added to the request headers. |
FrameworkTransportInterface | $transport | The HTTP transport object. |
- Depuis
- 1.7.3
- Exceptions
-
Références $options.
La documentation de cette classe a été générée à partir du fichier suivant :