summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerry Flood <jf9860@att.com>2017-10-27 08:29:25 -0400
committerJerry Flood <jf9860@att.com>2017-10-27 08:29:44 -0400
commit9e09020241a8b29297d2a07ce967bd96ea2ad2e0 (patch)
treeabb0f7ff46afe0c50c87f971323ff5fbb74e9156
parentc89a1635db884e64372ae48ccb953257be620302 (diff)
Add method to parse URL into piece parts1.0.1-ONAP1.0.1-Amsterdam1.0.0-ONAP1.0.0-Amsterdam
Issue: TEST-68 Change-Id: I15a6053b6a2e9f6426eda88d960437c650093133 Signed-off-by: Jerry Flood <jf9860@att.com>
-rw-r--r--eteutils/HTTPUtils.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/eteutils/HTTPUtils.py b/eteutils/HTTPUtils.py
index bca6b61..0747ec9 100644
--- a/eteutils/HTTPUtils.py
+++ b/eteutils/HTTPUtils.py
@@ -1,5 +1,6 @@
import urllib
from requests.packages import urllib3
+from urlparse import urlparse
class HTTPUtils:
"""HTTPUtils is common resource for simple http helper keywords."""
@@ -10,4 +11,8 @@ class HTTPUtils:
def disable_warnings(self):
""" Disable the cert warnings when creating sessions for A&AI API Calls """
- urllib3.disable_warnings() \ No newline at end of file
+ urllib3.disable_warnings()
+
+ def url_parse(self, url):
+ """ Get pieces of the URL """
+ return urlparse(url) \ No newline at end of file