Skip to content

Commit fb49f04

Browse files
authored
Update README.md (#353)
Updating README to add information about the usage of headers/metadata in the rpc request.
1 parent cdb43b0 commit fb49f04

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ grpcurl -d @ grpc.server.com:443 my.custom.server.Service/Method <<EOM
145145
}
146146
EOM
147147
```
148+
### Adding Headers/Metadata to Request
149+
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.
150+
Example :
151+
```shell
152+
grpcurl -H header1:value1 -H header2:value2 -d '{"id": 1234, "tags": ["foo","bar"]}' grpc.server.com:443 my.custom.server.Service/Method
153+
```
154+
For more usage guide, check out the help docs via `grpcurl -help`
148155

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

0 commit comments

Comments
 (0)