public function __get($name)Inherited
$name |
wild |
public function __set($name, $value)Inherited
$name | ||
$value |
wild |
public function current()Inherited
wild |
public function key()Inherited
wild |
public function next()Inherited
wild |
public function rewind()Inherited
wild |
public function valid()Inherited
wild |
private function throwOnAttemptedIteration()Inherited
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
string | Value of the constant. |
public function getConnectionID()
wild |
public function __construct($uri)
$uri |
this | //Implicit.// |
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.
$host |
wild |
public function getHost()
wild |
public function setConduitToken($conduit_token)
$conduit_token |
wild |
public function getConduitToken()
wild |
public function setOAuthToken($oauth_token)
$oauth_token |
wild |
public function callMethodSynchronous($method, $params)
$method | ||
array | $params |
wild |
public function didReceiveResponse($method, $data)
$method | ||
$data |
wild |
public function setTimeout($timeout)
$timeout |
wild |
public function setSigningKeys($public_key, $private_key)
$public_key | ||
PhutilOpaqueEnvelope | $private_key |
wild |
public function enableCapabilities($capabilities)
array | $capabilities |
wild |
public function callMethod($method, $params)
$method | ||
array | $params |
wild |
public function setBasicAuthCredentials($username, $password)
$username | ||
$password |
wild |
private function getHostStringForHeader()
wild |
private function getHostStringForSignature()
wild |
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.
bool | $with_explicit_port | True to include the port explicitly. |
string | String describing the host for the request. |
private function signRequest($method, $params, $meta)
$method | ||
array | $params | |
array | $meta |
wild |
public static function verifySignature($method, $params, $meta, $openssl_public_key)
$method | ||
array | $params | |
array | $meta | |
$openssl_public_key |
wild |
private static function encodeRequestDataForSignature($method, $params, $meta)
$method | ||
array | $params | |
array | $meta |
wild |
public static function encodeRawDataForSignature($data)
$data |
wild |