Property | Type | Description | |
---|---|---|---|
$connection | null | cURL connection handle | |
$headers | |||
$path | string | API path | |
$query | string | Query string | |
$requestBody | string | Request body to be sent | |
$responseBody | string | Response body returned from request | |
$responseHeaders | array | Response headers returned from request | |
$statusCode | integer | HTTP Status Code from response |
Method | Description | |
---|---|---|
addHeader ( $key, $value ) | Add a custom header to the request | |
closeConnection ( ) | ||
getConnection ( ) : resource | ||
getPath ( ) : string | ||
getQuery ( ) : string | ||
getRequest ( ) : string | ||
getResponseBody ( ) : string | ||
getResponseHeaders ( ) : array | ||
getStatusCode ( ) : integer | ||
openConnection ( ) | ||
prepare ( Basho\Riak\Command $command, |
Prepare request to be sent | |
resetConnection ( ) | ||
responseBodyCallback ( $ch, $body ) : integer | Response body callback | |
responseHeaderCallback ( $ch, $header ) : integer | Response header callback | |
send ( ) : boolean |
Method | Description | |
---|---|---|
buildPath ( ) | Sets the API path for the command | |
getResponseHeader ( $key, $default = '' ) | ||
parseResponse ( ) | ||
prepareConnection ( ) | Prepare Connection | |
prepareRequest ( ) | Prepare request | |
prepareRequestData ( ) | Prepare request data | |
prepareRequestHeaders ( ) | Prepares the request headers | |
prepareRequestMethod ( ) | Prepare the request method | |
prepareRequestParameters ( ) | Prepare request parameters | |
prepareRequestUrl ( ) | Prepares the complete request URL |
Method | Description | |
---|---|---|
createIndexQueryPath ( Basho\Riak\Bucket $bucket ) : string | Generates the URL path for a 2i Query |
public addHeader ( $key, $value ) | ||
$key | ||
$value |
public prepare ( Basho\Riak\Command $command, |
||
$command | Basho\Riak\Command | |
$node |
protected prepareConnection ( ) |
protected prepareRequest ( ) |
protected prepareRequestHeaders ( ) |
protected prepareRequestMethod ( ) |
protected prepareRequestParameters ( ) |
protected prepareRequestUrl ( ) |
public responseBodyCallback ( $ch, $body ) : integer | ||
$ch | ||
$body | ||
return | integer |
public responseHeaderCallback ( $ch, $header ) : integer | ||
$ch | ||
$header | ||
return | integer |
protected string $requestBody | ||
return | string |
protected string $responseBody | ||
return | string |
protected array $responseHeaders | ||
return | array |
protected int $statusCode | ||
return | integer |