1 from six.moves.urllib.parse import urlparse
2 from six.moves import urllib
8 """HTTPUtils is common resource for simple http helper keywords."""
10 def url_encode_string(self, barestring):
11 """URL Encode String takes in a string and converts it into fully 'percent-encoded' string"""
12 return urllib.parse.quote(barestring)
14 def disable_warnings(self):
15 """ Disable all warnings when creating sessions """
16 urllib3.disable_warnings()
18 def url_parse(self, url):
19 """ Get pieces of the URL """