\AdventureRes\Http ApiRawResponse

Class ApiRawResponse

Summary

Methods
Properties
Constants
__call()
__construct()
getRawBody()
getRawHeaders()
getHttpStatusCode()
No public properties found
No constants found
No protected methods found
$rawBody
$rawHeaders
$httpStatusCode
N/A
No private methods found
No private properties found
N/A

Properties

$rawBody

$rawBody : string

Type

string — The raw body returned from the response.

$rawHeaders

$rawHeaders : string

Type

string — A string of headers returned from the response.

$httpStatusCode

$httpStatusCode : integer|null

Type

integer|null — The status code returned from the response.

Methods

__call()

__call(  $command,   $arguments) 

Parameters

$command
$arguments

__construct()

__construct(string  $body, string  $headers, integer|null  $httpStatusCode = null) 

ApiRawResponse constructor.

Parameters

string $body
string $headers
integer|null $httpStatusCode

getRawBody()

getRawBody() : string

Returns the raw body from the API response.

Returns

string

getRawHeaders()

getRawHeaders() : string

Returns the raw headers from the API response.

Returns

string

getHttpStatusCode()

getHttpStatusCode() : integer|null

Returns the status code from the API response.

Returns

integer|null