This commit is contained in:
2020-09-11 19:43:19 +08:00
parent afc2eb2e0e
commit b27dacba3b
4 changed files with 12 additions and 20 deletions
+6 -14
View File
@@ -50,6 +50,12 @@ class Client
private $connect_timeout = 1;
const GET = 'get';
const PUT = 'put';
const POST = 'post';
const DELETE = 'delete';
const OPTIONS = 'option';
/**
* @return int
*/
@@ -100,19 +106,6 @@ class Client
$this->port = $port;
}
const POST = 'post';
const GET = 'get';
const PUT = 'put';
const DELETE = 'delete';
const OPTIONS = 'option';
/**
* HttpClient constructor.
*/
private function __construct()
{
}
/**
* @return Http2
@@ -264,7 +257,6 @@ class Client
}
$client->close();
return $param;
}
/**