aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/common/httpClient.py
diff options
context:
space:
mode:
Diffstat (limited to 'yardstick/common/httpClient.py')
-rw-r--r--yardstick/common/httpClient.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/yardstick/common/httpClient.py b/yardstick/common/httpClient.py
index ab2e9a379..6acd0303d 100644
--- a/yardstick/common/httpClient.py
+++ b/yardstick/common/httpClient.py
@@ -28,3 +28,7 @@ class HttpClient(object):
except Exception as e:
logger.debug('Failed: %s', e)
raise
+
+ def get(self, url):
+ response = requests.get(url)
+ return response.json()