Skip to content

DrWrong/grpc_proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

grpc_proxy

支持通过postman 调用grpc接口

使用方式

  1. 在postman上设置代理 localhost:7001
  2. 发送JSON请求

使用参考: https://github.com/jnewmano/grpc-json-proxy

curl -X POST \
  http://{{host}}/{{service}}/{{method}} \
  -H 'Content-Type: application/json' \
  -H 'Postman-Token: 135f874d-d5c2-49c9-94e0-5300e6a424dc' \
  -H 'cache-control: no-cache' \
  -H 'proxy-grpc: true' \
  -d '{
	  json payload
}'

实现

grpcurl进行了一层封装, server端调用了grpcurl

About

grpcurl postman 代理

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages