From 2f35a4a16a0fc179c165765310872abca9a6fc52 Mon Sep 17 00:00:00 2001 From: Yurun Date: Fri, 10 Jan 2020 12:45:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0grpc=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/components/rpc/grpc.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/components/rpc/grpc.md b/doc/components/rpc/grpc.md index 4f8a964b04..a2ef9c18f0 100644 --- a/doc/components/rpc/grpc.md +++ b/doc/components/rpc/grpc.md @@ -156,8 +156,10 @@ class AuthServiceController extends HttpController implements AuthServiceInterfa ], 'resource' => [ // 这里需要和你的服务端路由一致 - 'url' => 'http://127.0.0.1:8080/{package}.{service}/{name}', + 'url' => 'http://127.0.0.1:8080/{package}.{service}/{name}', + // 'url' => 'http://127.0.0.1:8080/{package}.{service}/{name|ucfirst}', // 参数支持设定函数处理,比如这个将方法名首字母大写,兼容其它部分语言 'clientClass' => \Imi\Grpc\Client\GrpcClient::class, + 'method' => 'POST', // 指定请求方式,默认 GET ] ], ],