Skip to content

Instantly share code, notes, and snippets.

@subzero112233
Created July 11, 2021 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subzero112233/22e7bf6e7df35f3c5dc98d1df2eec97f to your computer and use it in GitHub Desktop.
Save subzero112233/22e7bf6e7df35f3c5dc98d1df2eec97f to your computer and use it in GitHub Desktop.
echo 'player_name:"Jae Crowder"' \
| protoc --encode stats.GetStatsRequest ./rpc/stats/stats.proto \
| curl -s --request POST \
--header "Content-Type: application/protobuf" \
--data-binary @- \
http://localhost:8000/twirp/stats.StatsService/GetStats \
| protoc --decode stats.GetStatsResponse ./rpc/stats/stats.proto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment