Exemple #1
0
 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
Exemple #2
0
 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