Class TraceRequest

author Francis Chuang
package ArangoDBClient
since 1.3

 Methods

Set up the request trace

__construct(array $headers, string $method, string $requestUrl, string $body) 

Parameters

$headers

array
  • the array of http headers

$method

string
  • the request method

$requestUrl

string
  • the request url

$body

string
  • the string of http body

Get the body of the request

getBody() : string

Returns

string

Get an array of the request headers

getHeaders() : array

Returns

array

Get the request method

getMethod() : string

Returns

string

Get the request url

getRequestUrl() : string

Returns

string

Get the http message type

getType() : string

Returns

string

 Properties

 

Store the string of the body

$_body : string

Default

 

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

$_headers : array

Default

array()
 

Stores the http method

$_method : string

Default

 

Stores the request url

$_requestUrl : string

Default

 

The http message type

$_type : string

Default

'request'