RestApiClient: re-add lost method

This commit is contained in:
Thomas Gelf 2017-01-19 22:49:51 +01:00
parent c75b4fc6b0
commit 5c158e708e
1 changed files with 8 additions and 0 deletions

View File

@ -193,6 +193,14 @@ class RestApiClient
}
}
protected function readPart($curl, $data)
{
$length = strlen($data);
$this->readBuffer .= $data;
$this->processEvents();
return $length;
}
public function get($url, $body = null)
{
return $this->request('get', $url, $body);