From b7d951bdb78dbe0ec2ba9e4aa9ef9586bc60efd5 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Fri, 22 May 2020 14:08:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Efacade=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=EF=BC=8C=E4=BB=A5=E4=BE=BF=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=AE=BF=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/facade/Http.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/extend/catcher/facade/Http.php b/extend/catcher/facade/Http.php index c360d8d..9a3b5a2 100644 --- a/extend/catcher/facade/Http.php +++ b/extend/catcher/facade/Http.php @@ -3,6 +3,22 @@ namespace catcher\facade; use think\Facade; +/** + * @method static \catcher\library\client\Http headers(array $headers) + * @method static \catcher\library\client\Http body($body) + * @method static \catcher\library\client\Http json(array $data) + * @method static \catcher\library\client\Http query(array $query) + * @method static \catcher\library\client\Http form(array $params) + * @method static \catcher\library\client\Http timeout($timeout) + * @method static \catcher\library\client\Http get(string $url) + * @method static \catcher\library\client\Http post(string $url) + * @method static \catcher\library\client\Http put(string $url) + * @method static \catcher\library\client\Http delete(string $url) + * @method static \catcher\library\client\Http token(string $token) + * @method static \catcher\library\client\Http attach($name, $resource, $filename) + * + * @time 2020年05月22日 + */ class Http extends Facade { protected static function getFacadeClass()