Container class for HTTP responses
| package | ArangoDBClient |
|---|---|
| since | 0.2 |
__construct(string $responseString, string $originUrl= null, string $originMethod= null, boolean $wasAsync= false)
stringstringThe original URL the response is coming from
stringThe HTTP method that was used when sending data to the origin URL
boolean
\ArangoDBClient\ClientException |
|---|
getBatchPart() : \ArangoDBClient\Batchpart
\ArangoDBClient\BatchpartgetBody() : string
string- body of the responsegetHeader(string $name) : string
stringstring- header value, NULL if header wasn't set in responsegetHeaders() : array
array- array of all headers with valuesgetHttpCode() : integer
integer- HTTP status code of responsegetJson() : array
\ArangoDBClient\ClientException |
|---|
array- array of values from the JSON-encoded response bodygetLeaderEndpointHeader() : string
string- header value, NULL is header wasn't set in responsegetLocationHeader() : string
string- header value, NULL is header wasn't set in responsegetResult() : string
string- the result line (first line of header)setBatchPart(\ArangoDBClient\Batchpart $batchPart) : \ArangoDBClient\HttpResponse
\ArangoDBClient\Batchpart
\ArangoDBClient\HttpResponse$_body : string
''$_header : string
''$_headers : array
array()$_httpCode : integer
$_result : string
''$_wasAsync : boolean
false$batchPart : \ArangoDBClient\Batchpart
HEADER_LEADER_ENDPOINT = 'x-arango-endpoint'
HEADER_LOCATION = 'location'