feat : Decorator Http
This commit is contained in:
21
app/Interface/Test/Decorator/HttpClientInterface.php
Normal file
21
app/Interface/Test/Decorator/HttpClientInterface.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Interface\Test\Decorator;
|
||||
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
|
||||
interface HttpClientInterface
|
||||
{
|
||||
/**
|
||||
* 请求装饰器接口
|
||||
* @param string $method
|
||||
* @param string $url
|
||||
* @param array $options
|
||||
* @return mixed
|
||||
*/
|
||||
public function request(
|
||||
string $method,
|
||||
string $url,
|
||||
array $options = []
|
||||
): mixed;
|
||||
}
|
||||
Reference in New Issue
Block a user