\SlightPHPRest_Http

Summary

Methods
Properties
Constants
init()
addServers()
addServer()
getServer()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_sort()
hash()
$_servers
$_serverCt
N/A

Properties

$_servers

$_servers : 

Type

$_serverCt

$_serverCt : 

Type

Methods

init()

init(  $params = array()) 

Parameters

$params

addServers()

addServers(array  $servers) 

Parameters

array $servers

addServer()

addServer(  $host,   $path = "",   $weight = 1,   $timeout = 1) 

consistent hashing

Parameters

$host
$path
$weight
$timeout

getServer()

getServer(  $key) 

Parameters

$key

_sort()

_sort(  $a,   $b) 

Parameters

$a
$b

hash()

hash(  $str) 

Parameters

$str