add new chinese translations
This commit is contained in:
21
pages.zh/common/grpcurl.md
Normal file
21
pages.zh/common/grpcurl.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# grpcurl
|
||||
|
||||
> 与 gRPC 服务器互动。
|
||||
> 像 `curl`,但用于 gRPC。
|
||||
> 更多信息:<https://github.com/fullstorydev/grpcurl>。
|
||||
|
||||
- 发送一个空请求:
|
||||
|
||||
`grpcurl {{grpc.server.com:443}} {{my.custom.server.Service/Method}}`
|
||||
|
||||
- 发送一个带有头部和主体的请求:
|
||||
|
||||
`grpcurl -H "{{Authorization: Bearer $token}}" -d {{'{"foo": "bar"}'}} {{grpc.server.com:443}} {{my.custom.server.Service/Method}}`
|
||||
|
||||
- 列出服务器公开的所有服务:
|
||||
|
||||
`grpcurl {{grpc.server.com:443}} list`
|
||||
|
||||
- 列出特定服务中的所有方法:
|
||||
|
||||
`grpcurl {{grpc.server.com:443}} list {{my.custom.server.Service}}`
|
Reference in New Issue
Block a user