protected function httpGet($path, array $parameters = [], array $requestHeaders = [])
{
if (count($parameters) > 0) {
$path .= '?' . http_build_query($parameters);
}
try {
$response = $this->httpClient->sendRequest($this->requestBuilder->create('GET', $path, $requestHeaders));
} catch (HttplugException\NetworkException $e) {
throw HttpServerException::networkError($e);
}
return $response;
}