modify plugin name

This commit is contained in:
2022-02-21 15:17:42 +08:00
parent 48808ded98
commit 0c7b8eb57f
3 changed files with 868 additions and 900 deletions
+13 -12
View File
@@ -10,9 +10,8 @@ declare(strict_types=1);
namespace Kiri;
use Exception;
use JetBrains\PhpStorm\Pure;
use Kiri\Abstracts\Logger;
use Kiri;
use Kiri\Abstracts\Logger;
use Swoole\Coroutine\Http\Client as SwowClient;
/**
@@ -22,7 +21,7 @@ use Swoole\Coroutine\Http\Client as SwowClient;
class CoroutineClient extends ClientAbstracts
{
use TSwooleClient;
use TSwooleClient;
/**
* @param string $method
@@ -33,6 +32,9 @@ class CoroutineClient extends ClientAbstracts
*/
public function request(string $method, $path, array $params = []): void
{
if (!str_starts_with($path, '/')) {
$path = '/' . $path;
}
$this->withMethod($method)
->coroutine(
$this->matchHost($path),
@@ -41,15 +43,14 @@ class CoroutineClient extends ClientAbstracts
}
/**
* @param $path
* @return $this
*/
public function withCAInfo($path): static
{
return $this;
}
/**
* @param $path
* @return $this
*/
public function withCAInfo($path): static
{
return $this;
}
/**
* @param $url