Definition at line 34 of file FacebookCurlHttpClient.php.
◆ __construct()
Facebook\HttpClients\FacebookCurlHttpClient::__construct |
( |
FacebookCurl |
$facebookCurl = null | ) |
|
◆ closeConnection()
Facebook\HttpClients\FacebookCurlHttpClient::closeConnection |
( |
| ) |
|
◆ compileRequestHeaders()
Facebook\HttpClients\FacebookCurlHttpClient::compileRequestHeaders |
( |
array |
$headers | ) |
|
Compiles the request headers into a curl-friendly format.
- Parameters
-
array | $headers | The request headers. |
- Returns
- array
Definition at line 139 of file FacebookCurlHttpClient.php.
◆ extractResponseHeadersAndBody()
Facebook\HttpClients\FacebookCurlHttpClient::extractResponseHeadersAndBody |
( |
| ) |
|
◆ openConnection()
Facebook\HttpClients\FacebookCurlHttpClient::openConnection |
( |
|
$url, |
|
|
|
$method, |
|
|
|
$body, |
|
|
array |
$headers, |
|
|
|
$timeOut |
|
) |
| |
Opens a new curl connection.
- 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. |
Definition at line 93 of file FacebookCurlHttpClient.php.
◆ send()
Facebook\HttpClients\FacebookCurlHttpClient::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 67 of file FacebookCurlHttpClient.php.
◆ sendRequest()
Facebook\HttpClients\FacebookCurlHttpClient::sendRequest |
( |
| ) |
|
◆ $curlErrorCode
Facebook\HttpClients\FacebookCurlHttpClient::$curlErrorCode = 0 |
|
protected |
◆ $curlErrorMessage
Facebook\HttpClients\FacebookCurlHttpClient::$curlErrorMessage = '' |
|
protected |
◆ $facebookCurl
Facebook\HttpClients\FacebookCurlHttpClient::$facebookCurl |
|
protected |
◆ $rawResponse
Facebook\HttpClients\FacebookCurlHttpClient::$rawResponse |
|
protected |
The documentation for this class was generated from the following file: