示例#1
0
文件: client.py 项目: kn7072/kn7072
 def clear_dns_cache(self):
     """
     Clears the DNS cache associated with the proxy instance
     """
     r = request_1.delete("%s/proxy/%s/dns/cache" % (self.host, self.port))
     return r.status_code
示例#2
0
文件: client.py 项目: kn7072/kn7072
 def close(self):
     """
     shuts down the proxy and closes the port
     """
     r = request_1.delete("%s/proxy/%s" % (self.host, self.port))
     return r.status_code