def get_conn(self, urlparsed=None):
        if not urlparsed:
            urlparsed = self.dsc_parsed2
        if urlparsed.scheme == 'http':
            return HTTPConnection(urlparsed.netloc)
        else:
            return HTTPSConnection(urlparsed.netloc)
Returns an HTTPConnection based on the urlparse result given or the
dataset/ETHPy150Open openstack/swauth/swauth/middleware.py/Swauth.get_conn