Skip to content

Commit

Permalink
Update README.md (#353)
Browse files Browse the repository at this point in the history
Updating README to add information about  the usage of headers/metadata in the rpc request.
  • Loading branch information
ironhide0396 authored Oct 11, 2024
1 parent cdb43b0 commit fb49f04
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,13 @@ grpcurl -d @ grpc.server.com:443 my.custom.server.Service/Method <<EOM
}
EOM
```
### Adding Headers/Metadata to Request
Adding of headers / metadata to a rpc request is possible via the `-H name:value` command line option. Multiple headers can be added in a similar fashion.
Example :
```shell
grpcurl -H header1:value1 -H header2:value2 -d '{"id": 1234, "tags": ["foo","bar"]}' grpc.server.com:443 my.custom.server.Service/Method
```
For more usage guide, check out the help docs via `grpcurl -help`

### Listing Services
To list all services exposed by a server, use the "list" verb. When using `.proto` source
Expand Down

0 comments on commit fb49f04

Please sign in to comment.