Container class for HTTP responses
package | ArangoDBClient |
---|---|
since | 0.2 |
__construct(string $responseString, string $originUrl= null
, string $originMethod= null
, boolean $wasAsync= false
)
string
string
The original URL the response is coming from
string
The HTTP method that was used when sending data to the origin URL
boolean
\ArangoDBClient\ClientException |
---|
getBatchPart() : \ArangoDBClient\Batchpart
\ArangoDBClient\Batchpart
getBody() : string
string
- body of the responsegetHeader(string $name) : string
string
string
- 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'