Http static client.
More...
|
static | get ($url, $query=[], $headers=[], $body=null, $clientOptions=null) |
| HTTP GET METHOD (static)
|
|
static | post ($url, $params, $headers=[], $body=null, $clientOptions=null) |
| HTTP POST METHOD (static)
|
|
static get |
( |
|
$url, |
|
|
|
$query = [] , |
|
|
|
$headers = [] , |
|
|
|
$body = null , |
|
|
|
$clientOptions = null |
|
) |
| |
|
static |
HTTP GET METHOD (static)
- Parameters
-
string | $url | |
array | $query | |
array | $headers | |
mixed | $body | |
array | Traversable | $clientOptions | |
- Returns
- Response|bool
static getStaticClient |
( |
|
$options = null | ) |
|
|
staticprotected |
Get the static HTTP client.
- Parameters
-
array | Traversable | $options | |
- Returns
- Client
static post |
( |
|
$url, |
|
|
|
$params, |
|
|
|
$headers = [] , |
|
|
|
$body = null , |
|
|
|
$clientOptions = null |
|
) |
| |
|
static |
HTTP POST METHOD (static)
- Parameters
-
string | $url | |
array | $params | |
array | $headers | |
mixed | $body | |
array | Traversable | $clientOptions | |
- Exceptions
-
Exception\InvalidArgumentException | |
- Returns
- Response|bool