blob: bc8e063ff34ea9a116a0198c66eeaf3e22512a95 [file] [log] [blame]
import logging
import urllib.request, urllib.parse, urllib.error
from edge.writer.proxywriter import ProxyWriter
class GenericProxyWriter(ProxyWriter):
def __init__(self, configFilePath):
super(GenericProxyWriter, self).__init__(configFilePath)
def _generateUrl(self, requestHandler):
url = self._configuration.get('proxy', 'url')
url += requestHandler.request.uri[requestHandler.request.uri.index("?"):]
logging.debug("proxy to url : " + url)
return url