◆ __construct()
Facebook\HttpClients\FacebookGuzzleHttpClient::__construct |
( |
Client |
$guzzleClient = null | ) |
|
◆ getHeadersAsString()
Facebook\HttpClients\FacebookGuzzleHttpClient::getHeadersAsString |
( |
ResponseInterface |
$response | ) |
|
Returns the Guzzle array of headers as a string.
- Parameters
-
ResponseInterface | $response | The Guzzle response. |
- Returns
- string
Definition at line 87 of file FacebookGuzzleHttpClient.php.
◆ send()
Facebook\HttpClients\FacebookGuzzleHttpClient::send |
( |
|
$url, |
|
|
|
$method, |
|
|
|
$body, |
|
|
array |
$headers, |
|
|
|
$timeOut |
|
) |
| |
Sends a request to the server and returns the raw response.
- Parameters
-
string | $url | The endpoint to send the request to. |
string | $method | The request method. |
string | $body | The body of the request. |
array | $headers | The request headers. |
int | $timeOut | The timeout in seconds for the request. |
- Returns
- \Facebook\Http\GraphRawResponse Raw response from the server.
- Exceptions
-
Implements Facebook\HttpClients\FacebookHttpClientInterface.
Definition at line 52 of file FacebookGuzzleHttpClient.php.
◆ $guzzleClient
Facebook\HttpClients\FacebookGuzzleHttpClient::$guzzleClient |
|
protected |
The documentation for this class was generated from the following file: