Cheetah
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Facebook\Http\GraphRawResponse Class Reference

Public Member Functions

 __construct ($headers, $body, $httpStatusCode=null)
 
 getHeaders ()
 
 getBody ()
 
 getHttpResponseCode ()
 
 setHttpResponseCodeFromHeader ($rawResponseHeader)
 

Protected Member Functions

 setHeadersFromString ($rawHeaders)
 

Protected Attributes

 $headers
 
 $body
 
 $httpResponseCode
 

Detailed Description

Definition at line 31 of file GraphRawResponse.php.

Constructor & Destructor Documentation

◆ __construct()

Facebook\Http\GraphRawResponse::__construct (   $headers,
  $body,
  $httpStatusCode = null 
)

Creates a new GraphRawResponse entity.

Parameters
string | array$headersThe headers as a raw string or array.
string$bodyThe raw response body.
int$httpStatusCodeThe HTTP response code (if sending headers as parsed array).

Definition at line 55 of file GraphRawResponse.php.

Member Function Documentation

◆ getBody()

Facebook\Http\GraphRawResponse::getBody ( )

Return the body of the response.

Returns
string

Definition at line 85 of file GraphRawResponse.php.

◆ getHeaders()

Facebook\Http\GraphRawResponse::getHeaders ( )

Return the response headers.

Returns
array

Definition at line 75 of file GraphRawResponse.php.

◆ getHttpResponseCode()

Facebook\Http\GraphRawResponse::getHttpResponseCode ( )

Return the HTTP response code.

Returns
int

Definition at line 95 of file GraphRawResponse.php.

◆ setHeadersFromString()

Facebook\Http\GraphRawResponse::setHeadersFromString (   $rawHeaders)
protected

Parse the raw headers and set as an array.

Parameters
string$rawHeadersThe raw headers from the response.

Definition at line 116 of file GraphRawResponse.php.

◆ setHttpResponseCodeFromHeader()

Facebook\Http\GraphRawResponse::setHttpResponseCodeFromHeader (   $rawResponseHeader)

Sets the HTTP response code from a raw header.

Parameters
string$rawResponseHeader

Definition at line 105 of file GraphRawResponse.php.

Member Data Documentation

◆ $body

Facebook\Http\GraphRawResponse::$body
protected

Definition at line 41 of file GraphRawResponse.php.

◆ $headers

Facebook\Http\GraphRawResponse::$headers
protected

Definition at line 36 of file GraphRawResponse.php.

◆ $httpResponseCode

Facebook\Http\GraphRawResponse::$httpResponseCode
protected

Definition at line 46 of file GraphRawResponse.php.


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