Cheetah
Public Member Functions | Protected Attributes | List of all members
Facebook\HttpClients\FacebookGuzzleHttpClient Class Reference
Inheritance diagram for Facebook\HttpClients\FacebookGuzzleHttpClient:
Facebook\HttpClients\FacebookHttpClientInterface

Public Member Functions

 __construct (Client $guzzleClient=null)
 
 send ($url, $method, $body, array $headers, $timeOut)
 
 getHeadersAsString (ResponseInterface $response)
 

Protected Attributes

 $guzzleClient
 

Detailed Description

Definition at line 34 of file FacebookGuzzleHttpClient.php.

Constructor & Destructor Documentation

◆ __construct()

Facebook\HttpClients\FacebookGuzzleHttpClient::__construct ( Client  $guzzleClient = null)
Parameters

Definition at line 44 of file FacebookGuzzleHttpClient.php.

Member Function Documentation

◆ getHeadersAsString()

Facebook\HttpClients\FacebookGuzzleHttpClient::getHeadersAsString ( ResponseInterface  $response)

Returns the Guzzle array of headers as a string.

Parameters
ResponseInterface$responseThe 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$urlThe endpoint to send the request to.
string$methodThe request method.
string$bodyThe body of the request.
array$headersThe request headers.
int$timeOutThe 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.

Member Data Documentation

◆ $guzzleClient

Facebook\HttpClients\FacebookGuzzleHttpClient::$guzzleClient
protected

Definition at line 39 of file FacebookGuzzleHttpClient.php.


The documentation for this class was generated from the following file: