def set_proxy(self, value):
        """Set a proxy in Request object to be used by Connection Manager."""
        if urlparse.URI_RE_STRICT.search(value) is None:
            self._proxy = None
            raise InvalidURLFormatException("Proxy URL Passed is invalid")
        else:
            self._proxy = value
dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/client.py/HTTPRequest.set_proxy/original