|
@@ -542,10 +542,16 @@ class ResponseReader {
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
- private function setHandler($prefix, IResponseHandler $handler) {
|
|
|
|
|
|
+ public function setHandler($prefix, IResponseHandler $handler) {
|
|
$this->_prefixHandlers[$prefix] = $handler;
|
|
$this->_prefixHandlers[$prefix] = $handler;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function getHandler($prefix) {
|
|
|
|
+ if (isset($this->_prefixHandlers[$prefix])) {
|
|
|
|
+ return $this->_prefixHandlers[$prefix];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
public function setOption($option, $value) {
|
|
public function setOption($option, $value) {
|
|
switch ($option) {
|
|
switch ($option) {
|
|
case 'iterable_multibulk_replies':
|
|
case 'iterable_multibulk_replies':
|