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

Public Member Functions

 __construct (FacebookStream $facebookStream=null)
 
 send ($url, $method, $body, array $headers, $timeOut)
 
 compileHeader (array $headers)
 

Protected Attributes

 $facebookStream
 

Detailed Description

Definition at line 29 of file FacebookStreamHttpClient.php.

Constructor & Destructor Documentation

◆ __construct()

Facebook\HttpClients\FacebookStreamHttpClient::__construct ( FacebookStream  $facebookStream = null)
Parameters
FacebookStream|nullProcedural stream wrapper as object.

Definition at line 39 of file FacebookStreamHttpClient.php.

Member Function Documentation

◆ compileHeader()

Facebook\HttpClients\FacebookStreamHttpClient::compileHeader ( array  $headers)

Formats the headers for use in the stream wrapper.

Parameters
array$headersThe request headers.
Returns
string

Definition at line 85 of file FacebookStreamHttpClient.php.

◆ send()

Facebook\HttpClients\FacebookStreamHttpClient::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 47 of file FacebookStreamHttpClient.php.

Member Data Documentation

◆ $facebookStream

Facebook\HttpClients\FacebookStreamHttpClient::$facebookStream
protected

Definition at line 34 of file FacebookStreamHttpClient.php.


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