protected function assertProxyUnavailable(Proxy $proxy, $message = null)
 {
     list($ip, $port) = explode(":", $proxy->getListen());
     $this->assertConnection(["ip" => $ip, "port" => $port, "match" => false], $message);
 }
示例#2
0
 public function delete(Proxy $proxy)
 {
     try {
         return $this->httpClient->delete(sprintf("/proxies/%s", $proxy->getName()));
     } catch (HttpClientException $e) {
         $this->handleHttpClientException($e);
     }
 }