\triagens\ArangoDbTraceResponse

Class TraceResponse


Summary

Methods
Properties
Constants
__construct()
getHeaders()
getHttpCode()
getHttpCodeDefinition()
getBody()
getType()
getTimeTaken()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_headers
$_httpCode
$_body
$_type
$_timeTaken
$_httpCodeDefinitions
N/A

Properties

$_headers

$_headers : array

Stores each header as an array (key => value) element

Type

array

$_httpCode

$_httpCode : integer

The http status code

Type

integer

$_body

$_body : string

The raw body of the response

Type

string

$_type

$_type : string

The type of http message

Type

string

$_timeTaken

$_timeTaken : float

The time taken to send and receive a response in seconds

Type

float

$_httpCodeDefinitions

$_httpCodeDefinitions : array

Used to look up the definition for an http code

Type

array

Methods

__construct()

__construct(array $headers, integer $httpCode, string $body,  $timeTaken)

Set up the response trace

Parameters

array $headers
  • the array of http headers
integer $httpCode
  • the http code
string $body
  • the string of http body
$timeTaken

getHeaders()

getHeaders() : array

Get an array of the response headers

Returns

array

getHttpCode()

getHttpCode() : integer

Get the http response code

Returns

integer

getHttpCodeDefinition()

getHttpCodeDefinition() : string

Get the http code definition

Throws

\triagens\ArangoDb\ClientException

Returns

string

getBody()

getBody() : string

Get the response body

Returns

string

getType()

getType() : string

Get the http message type

Returns

string

getTimeTaken()

getTimeTaken()

Get the time taken for this request