add clear

This commit is contained in:
2020-04-03 17:46:43 +08:00
parent a4f51ef586
commit 5ee4e994c7
+3
View File
@@ -139,6 +139,9 @@ class HttpClient
public function setUseSwoole($bool)
{
$this->use_swoole = $bool;
if ($this->use_swoole) {
function_exists('setCli') && setCli(true);
}
return $this;
}