summaryrefslogtreecommitdiffstats
path: root/eteutils/HTTPUtils.py
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2017-02-15 18:21:12 -0500
committerDR695H <dr695h@att.com>2017-02-15 18:23:10 -0500
commit5fa0146de7ad7aa73f533253a57f3798b02cca39 (patch)
treeba3f0e5a3755af179478b7f0c1434feae0294384 /eteutils/HTTPUtils.py
parent9ef2b0130988e923bdf96b563d8457be9ba70ee1 (diff)
Initial checkin of OpenECOMP testing utilsrelease-1.0.0
Change-Id: Ife652fabd1ee64d73d0cb0b72f954b9a44de615f Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'eteutils/HTTPUtils.py')
-rw-r--r--eteutils/HTTPUtils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/eteutils/HTTPUtils.py b/eteutils/HTTPUtils.py
new file mode 100644
index 0000000..9df3611
--- /dev/null
+++ b/eteutils/HTTPUtils.py
@@ -0,0 +1,8 @@
+import urllib
+
+class HTTPUtils:
+ """HTTPUtils is common resource for simple http helper keywords."""
+
+ def url_encode_string(self, barestring):
+ """URL Encode String takes in a string and converts into 'percent-encoded' string"""
+ return urllib.quote_plus(barestring) \ No newline at end of file