blob: bca6b61c18f231bc7ebb97a3f3054628816776e6 [file] [log] [blame]
import urllib
from requests.packages import urllib3
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)
def disable_warnings(self):
""" Disable the cert warnings when creating sessions for A&AI API Calls """
urllib3.disable_warnings()