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
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