public function getConnectionID()
public function getConnectionID()
Return
wild |
public function __construct($uri)
public function __construct($uri)
Parameters
$uri |
Return
this | //Implicit.// |
public function setHost($host)
public function setHost($host)
Override the domain specified in the service URI and provide a specific host identity.
This can be used to connect to a specific node in a cluster environment.
Parameters
$host |
Return
wild |
public function getHost()
public function getHost()
Return
wild |
public function setConduitToken($conduit_token)
public function setConduitToken($conduit_token)
Parameters
$conduit_token |
Return
wild |
public function getConduitToken()
public function getConduitToken()
Return
wild |
public function setOAuthToken($oauth_token)
public function setOAuthToken($oauth_token)
Parameters
$oauth_token |
Return
wild |
public function callMethodSynchronous($method, $params)
public function callMethodSynchronous($method, $params)
Parameters
$method | ||
array | $params |
Return
wild |
public function didReceiveResponse($method, $data)
public function didReceiveResponse($method, $data)
Parameters
$method | ||
$data |
Return
wild |
public function setTimeout($timeout)
public function setTimeout($timeout)
Parameters
$timeout |
Return
wild |
public function setSigningKeys($public_key, $private_key)
public function setSigningKeys($public_key, $private_key)
Parameters
$public_key | ||
PhutilOpaqueEnvelope | $private_key |
Return
wild |
public function enableCapabilities($capabilities)
public function enableCapabilities($capabilities)
Parameters
array | $capabilities |
Return
wild |
public function callMethod($method, $params)
public function callMethod($method, $params)
Parameters
$method | ||
array | $params |
Return
wild |
public function setBasicAuthCredentials($username, $password)
public function setBasicAuthCredentials($username, $password)
Parameters
$username | ||
$password |
Return
wild |
private function getHostStringForHeader()
private function getHostStringForHeader()
Return
wild |
private function getHostStringForSignature()
private function getHostStringForSignature()
Return
wild |
private function newHostString($with_explicit_port)
private function newHostString($with_explicit_port)
Build a string describing the host for this request.
This method builds strings in two modes: with explicit ports for request signing (which always include the port number) and with implicit ports for use in the "Host:" header of requests (which omit the port number if the port is the same as the default port for the protocol).
This implicit port behavior is similar to what browsers do, so it is less likely to get us into trouble with webserver configurations.
Parameters
bool | $with_explicit_port | True to include the port explicitly. |
Return
string | String describing the host for the request. |
private function signRequest($method, $params, $meta)
private function signRequest($method, $params, $meta)
Parameters
$method | ||
array | $params | |
array | $meta |
Return
wild |
public static function verifySignature($method, $params, $meta, $openssl_public_key)
public static function verifySignature($method, $params, $meta, $openssl_public_key)
Parameters
$method | ||
array | $params | |
array | $meta | |
$openssl_public_key |
Return
wild |
private static function encodeRequestDataForSignature($method, $params, $meta)
private static function encodeRequestDataForSignature($method, $params, $meta)
Parameters
$method | ||
array | $params | |
array | $meta |
Return
wild |
public static function encodeRawDataForSignature($data)
public static function encodeRawDataForSignature($data)
Parameters
$data |
Return
wild |