

def _remove_proxy_route(self, app_id):
    (base_url, token) = self._read_proxy_info()
    h = {
        'Authorization': 'token {}'.format(token),
    }
    proxy_url = ((token + '/') + app_id)
    try:
        r = requests.delete(proxy_url, headers=h)
        if (r.status_code == 204):
            info_log(self.TAG, 'Removed proxy route for {}'.format(app_id))
            return True
    except requests.exceptions.ConnectionError:
        error_log(self.TAG, 'Could not remove proxy route for {}'.format(app_id))
    return False

dataset/ETHPy150Open binder-project/binder/binder/cluster.py KubernetesManager._remove_proxy_route/VarMisuse@44/62 `base_url`->`token`